How to add an RSS feed to Conky/conky-rss.sh

Bash script to be used with Conky. The script displays a simple RSS feed. It requires curl


 * 1) RSS Feed Display Script by Hellf[i]re v0.1
 * 2) This script is designed for most any RSS Feed. As some feeds may not be
 * 3) completely compliant, it may need a bit of tweaking
 * 4) This script depends on curl.
 * 5) Gentoo: emerge -av net-misc/curl
 * 6) Debian: apt-get install curl
 * 7) Homepage: http://curl.haxx.se/
 * 8) Usage:
 * 9) .conkyrc: ${execi [time] /path/to/script/conky-rss.sh}
 * 10) Usage Example
 * 11) ${execi 300 /home/youruser/scripts/conky-rss.sh}
 * 1) .conkyrc: ${execi [time] /path/to/script/conky-rss.sh}
 * 2) Usage Example
 * 3) ${execi 300 /home/youruser/scripts/conky-rss.sh}
 * 1) ${execi 300 /home/youruser/scripts/conky-rss.sh}

URI=http://www.foxnews.com/xmlfeed/rss/0,4313,1,00.rss #URI of RSS Feed LINES=6 #Number of headlines
 * 1) RSS Setup

EXEC="/usr/bin/curl -s" #Path to curl
 * 1) Environment Setup

$EXEC $URI | xmllint --format -| grep title |\ sed -e :a -e 's/<[^>]*>//g;/</N' |\ sed -e 's/[ \t]*//' |\ sed -e 's/\(.*\)/ \1/' |\ sed -e 's/\.//' |\ sed -e 's/\"//' |\ sed -e 's/\"//' |\ head -n $(($LINES + 2)) |\ tail -n $(($LINES))
 * 1) Work Start

Source

 * conky-rss.sh
 * many more Conky scripts