[comp.unix.xenix.sco] Date Highlighted with SHELL

root@csoftec.csf.com (Cliff Manis (cmanis@csoftec)) (09/05/90)

                   Bourne Shell Script HELP needed

Some months ago I got part of this script from the net and have modified
it to highlight the actual date of the month.

At present it will highlight the date if the date is two digit only, and I
have not  been able to make it highlight the first 9 days of the month.

Any help would be appreciated... and Thanks..   Cliff Manis

Please also mail direct to:  cmanis@csoftec.csf.com
---------------------------

# 0datehigh

tmp=month$$
tmp2=newmonth$$
tod=`date +%m`
tod2=`date +%y`
cal $tod 19$tod2 | sed '/^$/d' > $tmp
sed 's/^/                           /' $tmp > $tmp2
tod=`date +%d`
sed 's/'$tod'/'`echo "\033[7m$tod\033[0m"`'/' $tmp2 > $tmp
tod=`date +%y`
sed 's/'$tod'/'`echo "$tod"`'/' $tmp > $tmp2
sed 's/^/'`echo "\033[36m"`'/' $tmp2 > $tmp
tod=`date +%d`
cat $tmp2
rm $tmp $tmp2
# /end of script/