#330000

cd /var/www/tech/perl

echo " Slashdot" > /tmp/rss.log
./rsshtml.pl http://slashdot.org/slashdot.rdf | \
     sed "s,bgcolor=\"#......\",bgcolor=\"#330000\",g"  | \
     grep -v "center>" | \
     grep -v "<img" | \
     sed "s,Search Slashdot stories,," | \
     sed "s,<font color=\".......\" face=\"Arial\,Helvetica\">,," | \
     sed "s,align=\"center\",align=left," | \
     sed "s,<B>,<h4>,g" > slashdot.html 



echo " Yahoo" > /tmp/rss.log
python ./rss.py http://rss.news.yahoo.com/rss/topstories > /tmp/yahoo.out
grep "^title" /tmp/yahoo.out | sed "s,^title: ,," > /tmp/yahooA.out
grep "^link" /tmp/yahoo.out | sed "s,^link: ,," > /tmp/yahooB.out

echo "<a href=\"http://news.yahoo.com\"><h4>Yahoo News</h4></a>" > yahoo.html
paste /tmp/yahooB.out /tmp/yahooA.out  | \
sed "s,^http,<li><a href=\"http,"  | \
sed "s,	,\">,"  | \
sed "s,$,</a>,"  >> yahoo.html


echo " Portal Catalog - New" > /tmp/rss.log
python ./rss.py http://catalog.lotus.com/feeds/IBMWebSpherePortal_new_rss.xml > /tmp/portal.out
grep "^title" /tmp/portal.out | sed "s,^title: ,," > /tmp/Aportal.out
grep "^link" /tmp/portal.out | sed "s,^link: ,," > /tmp/Bportal.out

echo "<a href=\"http://catalog.lotus.com/wps/portal/portal\"><h4>Portal Catalog</h4></a>" > portal.html
paste /tmp/Bportal.out /tmp/Aportal.out  | \
sed "s,^http,<li><a href=\"http,"  | \
sed "s,	,\">,"  | \
sed "s,$,</a>,"  >> portal.html



#echo " Metafilter " > /tmp/rss.log
#python ./rss.py http://xml.metafilter.com/rss.xml > /tmp/metafilter.out
#grep "^title" /tmp/metafilter.out | sed "s,^title: ,," > /tmp/Ametafilter.out
#grep "^link" /tmp/metafilter.out | sed "s,^link: ,," > /tmp/Bmetafilter.out

#echo "<a href=\"http://www.metafilter.com\"><h4>Metafilter </h4></a>" > metafilter.html
#paste /tmp/Bmetafilter.out /tmp/Ametafilter.out  | \
#sed "s,^http,<li><a href=\"http,"  | \
#sed "s,	,\">,"  | \
#sed "s,$,</a>,"  >> metafilter.html