Calendaring with cal
One of the handiest UNIX utilities is cal, which—logically—is a calendar. Find out what today's date is, what day of the week December 31st is, or what the calendar year looks like. As Code Listing 15.1 shows, all you have to do is type cal and any specific options you want.
To use the calendar utility:
1. | cal |
2. | cal -j |
3. | cal 1999 | more |
4. | cal 12 1941 |
Get Unix: Visual QuickStart Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.