Leitor de RSS
Publicado por Wainer Chiari 22/08/2004
[ Hits: 8.117 ]
Esse script le o RSS do slashdot e
repassa lipinho, em shell
Voce pode utilizar com a opcao -N,
subsititua N pelo numero de noticias
que desja ver: exemplo:
./getrss -3
Para ver as tres ultimas noticias. ;P
Se quiser atualizacao automatica
utilize em conjunto com o watch...
#!/bin/sh #url="http://www.noticiaslinux.com.br/rss.php" url="http://slashdot.org/index.rss" #url="http://www.vivaolinux.com.br/index.rdf" if [ $# -eq 1 ] ; then headarg=$(( $1 * 2 )) # $(( )) specifies that you're using an equation else headarg="-8" # default is four headlines fi curl --silent "$url" | grep -E '(title>|description>)' | \ sed -n '4,$p' | \ sed -e 's/<title>//' -e 's/<\/title>//' -e 's/<description>/ /' \ -e 's/<\/description>//' | \ head $headarg | fmt
Text User Interface (TUI) com whiptail
Backup Simples de tabela MYSQL
Como escolher o melhor escalonador de CPU para melhorar o desempenho da máquina
Curiosidade sobre DOOM Guy e Isabelle de Animal Crossing
Inicializando servidor Ubuntu na AWS e rodando apache em Container
Instalando TeamViewer no Debian 12
Conheça o Octopi, outro frontend para o Pacman com acesso ao AUR (Arch Linux e derivados)
Terminal transparente no Debian 12 com interface i3wm usando Xfce4-Terminal e Compton
O que é isso no meu navegador? [RESOLVIDO] (5)
Eu estou com problemas para usar o QBASIC no Dosbox X (2)
Ubuntu simplesmente morreu (8)
Como colocar uma assinatura digital em um código compilado ! (2)