paulo@8: #!/bin/sh paulo@8: paulo@9: TIMESTAMP=$(date '+%FT%T%:z') paulo@18: TIMEOUT=60 paulo@18: paulo@18: i=0 paulo@18: for URL in $(grep -v '^#' FEEDS) paulo@18: do paulo@18: FN=$((i++)).feedtmp paulo@18: wget -q -T ${TIMEOUT} -U '' -O - ${URL} | xsltproc step1.xsl - | xsltproc step2.xsl - > ${FN} & paulo@18: done paulo@18: paulo@18: wait paulo@18: paulo@9: echo '' paulo@9: echo '' paulo@9: echo "${TIMESTAMP}" paulo@9: echo '' paulo@9: echo '' paulo@9: paulo@9: echo '' paulo@9: echo "

${TIMESTAMP}

" paulo@8: paulo@19: for j in $(seq 0 ${i}) paulo@19: do paulo@19: cat ${j}.feedtmp paulo@19: done paulo@9: paulo@9: echo '' paulo@9: echo '' paulo@18: paulo@18: rm *.feedtmp