touch nntop
echo "`date |awk '{print $3 " " $2 " " $4}'`" > datef
echo "[ " >> nntop
echo "`date |awk '{print $3 " " $2 " " $4}'` ] - " >> nntop
echo "`grep '> nntop
echo "
" >> nntop
cat ntop >> nntop
mv nntop ntop
echo " [" > onews2
echo "" >> onews2
echo "`date |awk '{print $3 " " $2 " " $4}'`" >> onews2
echo "] - " >> onews2
echo "`grep '> onews2
echo "
" >> onews2
echo "`grep -v '> onews2
echo "
" >> onews2
cat onews >> onews2
cat onews2 > onews
cat header > news.html
echo "" >> news.html
cat ntop >> news.html
cat onews >> news.html
rm -rf datef
rm -rf nnews
rm -rf news2
rm -rf onews2
echo "" > nnews