changeset 17:5a0c2ee709f8

myrss/myrss_update.sh: allow # comments
author paulo@twcdns.fastsearch.net
date Wed, 29 Sep 2010 22:04:46 -0700
parents b1038ce571d3
children 3551de5fef13
files myrss/myrss_update.sh
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/myrss/myrss_update.sh	Wed Sep 15 01:30:07 2010 -0700
     1.2 +++ b/myrss/myrss_update.sh	Wed Sep 29 22:04:46 2010 -0700
     1.3 @@ -11,10 +11,10 @@
     1.4  echo '<BODY>'
     1.5  echo "<H1>${TIMESTAMP}</H1>"
     1.6  
     1.7 -while read LINE
     1.8 +for URL in $(grep -v '^#' FEEDS)
     1.9  do
    1.10 -	wget -q -U '' -O - ${LINE} | xsltproc step1.xsl - | xsltproc step2.xsl - 
    1.11 -done < FEEDS
    1.12 +	wget -q -U '' -O - ${URL} | xsltproc step1.xsl - | xsltproc step2.xsl - 
    1.13 +done 
    1.14  
    1.15  echo '</BODY>'
    1.16  echo '</HTML>'