Mercurial > hg > index.fcgi > www > www-1
changeset 19:fce61e65e3ae
myrss_update.sh: simplify printing *.feedtmp
author | paulo@thepaulopc |
---|---|
date | Wed, 10 Nov 2010 22:30:04 -0800 |
parents | 3551de5fef13 |
children | 469b1e6dd364 |
files | myrss/myrss_update.sh |
diffstat | 1 files changed, 4 insertions(+), 7 deletions(-) [+] |
line diff
1.1 --- a/myrss/myrss_update.sh Wed Nov 10 00:05:53 2010 -0800 1.2 +++ b/myrss/myrss_update.sh Wed Nov 10 22:30:04 2010 -0800 1.3 @@ -12,12 +12,6 @@ 1.4 1.5 wait 1.6 1.7 -BODY='' 1.8 -for j in $(seq 0 ${i}) 1.9 -do 1.10 - BODY=${BODY}$(cat ${j}.feedtmp) 1.11 -done 1.12 - 1.13 echo '<HTML>' 1.14 echo '<HEAD>' 1.15 echo "<TITLE>${TIMESTAMP}</TITLE>" 1.16 @@ -27,7 +21,10 @@ 1.17 echo '<BODY>' 1.18 echo "<H1>${TIMESTAMP}</H1>" 1.19 1.20 -echo ${BODY} 1.21 +for j in $(seq 0 ${i}) 1.22 +do 1.23 + cat ${j}.feedtmp 1.24 +done 1.25 1.26 echo '</BODY>' 1.27 echo '</HTML>'