Forwarding Address: OS X

Thursday, October 21, 2004

Liked calc? Check out cal

In my ongoing effort to convince OS X users that the command line is not to be feared but to be loved allow me to remind you of (or perhaps introduce you to) another incredibly useful little command line utility: cal.

'cal' is short for 'calendar' and as you've probably guessed it displays a calendar:

[bob-adamantium:~] bob% cal
    October 2004 
 S  M Tu  W Th  F  S 
                1  2 
 3  4  5  6  7  8  9 
10 11 12 13 14 15 16 
17 18 19 20 21 22 23 
24 25 26 27 28 29 30 
31 
Which is nifty but not spectacular. But: ever want to know what day of the week your birthday was on in the year 1?
[bob-adamantium:~] bob% cal 1
The year 3003?
[bob-adamantium:~] bob% cal 3003
December of 8432?
[bob-adamantium:~] bob% cal 12 8432
Nice, no?

6 Comments:

Post a Comment

<< Home