Join the DZone community and get the full member experience.Join For Free
Grabs the RSS-feed from digg.com and reads it out loud using festival.
#!/bin/sh # Copyright (c) 2005 Davor Babic
# All rights reserved. # Usage of the works is permitted provided that this # instrument is retained with the works, so that any # entity that uses the works is notified of this # instrument. # DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY. url="http://digg.com/rss/index.xml" echo "Parsing RSS..." curl --silent "$url" | grep -E '(title>|description>)' | \ sed -n '4,$p' | \ sed -e 's/ //' -e 's/<\/title>//' -e 's/ / /' \ -e 's/<\/description>//' | head -5 > digg echo "Reading..." festival --tts digg rm -rf ./digg echo "Done."