makemonth.sh

 

### makemonth.sh
###
### Create skeleton of current month
### Used for status reports.  See cal.html
###

cal > tmp.out
csplit tmp.out 2


echo "<p><hr>" > tmp1.out
sed "s/^/<h2>/g" xx00 | \
sed "s/$/<\/h2>/g">> tmp1.out

echo "<table border=1>" >> tmp1.out

sed "s/^/<tr><td>/g" xx01 | \
sed "s/$/<\/td><\/tr>/g"  | \
sed "s/  /<\/td><td>/g"  | \
sed "s/ /<\/td><td>/g" >> tmp1.out
echo "</table>" >> tmp1.out