today.pl -- Highlight Today's Date in Unix Cal Output
today.pl is a simple way to highlight today's data in unix cal program output. Note that more modern cal programs, such as the one from the GNU project and a recent BSD cal do by default highlight today's date in the calendar output. This program is more a curiousity of how I did it before cal did the highlighting. It's much easier to use cal or ncal now and let it do the highlighting. I use it in my .login file to provide a calendar when I log in.
- Show today.pl code
- Download: today.pl
Usage
The command line is: today.pl There are no commandline options for today.pl.
- ncal output will also work in today.pl. /usr/bin/ncal -h -b'; # -h is turn off highlighting of today
- ncal by default also highlights the day by default.
As an example, the command today.pl might produce output like:
![]()
Back to Kent's Perl Page