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 Mar 24, '09 06:47:48PM

i really like this, though i would like to have the full year. i've been tinkering and know how to make previous and future months display, but can't figure out to make it display properly except in 1 column. and having the previous and future months doesn't give me the whole year either. any help is appreciated.



[ Reply to This | # ]
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 | # ]