#!/bin/shOccassionally a blank one is returned; just try again.
#
# fetch a fortune from thinkgeek
#
curl -s http://www.thinkgeek.com/fortune.shtml | \
sed -n '/(refresh for another)/,/table\>/p' | \
sed -n '/<p>/,/<\/p>/{/[.]/p; }' | \
sed '{/^<[/]*p>/d; s/<[BbRr]*>//g; s/<\;/</g; s/>\;/>/g; }'
[Editor's note: Make sure you make the script executable (chmod 755 script_name), and this worked for me when tested (and some of them are quite humorous).]

