Leitor de RSS
Publicado por Wainer Chiari 22/08/2004
[ Hits: 8.306 ]
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
Testando RAID na incialização e exibindo log no issue
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Descritores de Arquivos e Swappiness
Solução rápida para o problema do Network Manager conectar mas não navegar
Como instalar no Linux Jogos da Steam só para Windows
Instalando o Team Viewer no Debian Trixie - problema no Policykit
Controle do PS5 no Linux Mint funciona? (4)
Qual driver da NVIDIA instalar? (2)
Como instalar o KDE3 em Distros Atuais ou Quase (5)