I would like to highlight today's date in the output of the
cal
command. What is the best way?
This is what I have so far:
cal -m | grep -C6 --color "$(date +%e)"
but it doesn't work for all cases e.g, when the date has a single digit. I also want the highlighting to work when I display the calendar for a year.
Asked by dogbane
(30655 rep)
Apr 11, 2011, 01:23 PM
Last activity: Oct 21, 2021, 02:06 PM
Last activity: Oct 21, 2021, 02:06 PM