Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'The ultimate 3-column calendar' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
The ultimate 3-column calendar
Authored by: theupperhand on Apr 02, '09 08:40:19AM

i think i figured it out. i tried:

cal -y | awk -v cday=`date "+%d"` '{ fill=(int(cday)>9?"":" "); \
a=$0; sub(" "fill int(cday)" ","["fill int(cday)"]",a); print a }'\

and it appears to work, it shows the full year with the current day between square brackets.



[ Reply to This | # ]
The ultimate 3-column calendar
Authored by: theupperhand on Apr 02, '09 08:50:05AM

nevermind, this still doesn't work right. i noticed that other days are highlighted too, but only in 4 other months.



[ Reply to This | # ]