view myrss/myrss_update.sh @ 17:5a0c2ee709f8

myrss/myrss_update.sh: allow # comments
author paulo@twcdns.fastsearch.net
date Wed, 29 Sep 2010 22:04:46 -0700
parents fbd8c30c465c
children 3551de5fef13
line source
1 #!/bin/sh
3 TIMESTAMP=$(date '+%FT%T%:z')
5 echo '<HTML>'
6 echo '<HEAD>'
7 echo "<TITLE>${TIMESTAMP}</TITLE>"
8 echo '<LINK REL="stylesheet" TYPE="text/css" HREF="index.css">'
9 echo '</HEAD>'
11 echo '<BODY>'
12 echo "<H1>${TIMESTAMP}</H1>"
14 for URL in $(grep -v '^#' FEEDS)
15 do
16 wget -q -U '' -O - ${URL} | xsltproc step1.xsl - | xsltproc step2.xsl -
17 done
19 echo '</BODY>'
20 echo '</HTML>'