comparison myrss/myrss_update.sh @ 19:fce61e65e3ae

myrss_update.sh: simplify printing *.feedtmp
author paulo@thepaulopc
date Wed, 10 Nov 2010 22:30:04 -0800
parents 3551de5fef13
children f93693980ead
comparison
equal deleted inserted replaced
3:ee343305949a 4:015eecda3dc7
10 wget -q -T ${TIMEOUT} -U '' -O - ${URL} | xsltproc step1.xsl - | xsltproc step2.xsl - > ${FN} & 10 wget -q -T ${TIMEOUT} -U '' -O - ${URL} | xsltproc step1.xsl - | xsltproc step2.xsl - > ${FN} &
11 done 11 done
12 12
13 wait 13 wait
14 14
15 BODY=''
16 for j in $(seq 0 ${i})
17 do
18 BODY=${BODY}$(cat ${j}.feedtmp)
19 done
20
21 echo '<HTML>' 15 echo '<HTML>'
22 echo '<HEAD>' 16 echo '<HEAD>'
23 echo "<TITLE>${TIMESTAMP}</TITLE>" 17 echo "<TITLE>${TIMESTAMP}</TITLE>"
24 echo '<LINK REL="stylesheet" TYPE="text/css" HREF="index.css">' 18 echo '<LINK REL="stylesheet" TYPE="text/css" HREF="index.css">'
25 echo '</HEAD>' 19 echo '</HEAD>'
26 20
27 echo '<BODY>' 21 echo '<BODY>'
28 echo "<H1>${TIMESTAMP}</H1>" 22 echo "<H1>${TIMESTAMP}</H1>"
29 23
30 echo ${BODY} 24 for j in $(seq 0 ${i})
25 do
26 cat ${j}.feedtmp
27 done
31 28
32 echo '</BODY>' 29 echo '</BODY>'
33 echo '</HTML>' 30 echo '</HTML>'
34 31
35 rm *.feedtmp 32 rm *.feedtmp