Zoë Blade's notebook

calendar

𐑒𐑨𐑤𐑦𐑯𐑛𐑼

Not to be confused with cal.

calendar is a Unix utility. It reminds you of upcoming events, such as birthdays and holidays.

You can automatically invoke it every time you log in by adding calendar to your ~/.profile file. Then you can maintain a plain text ~/calendar file with entries like this:

04/06   New tax year

Note that on some versions, the two columns need to be separated with tabs, not spaces.

Dates are in the US format, so months come before days. You can use ISO 2014 style dashes if you'd prefer:

04-06   New tax year

Or you can even abbreviate months, to disambiguate them:

Apr 06  New tax year

As the date formats are big-endian, putting the month before the day, they allow for easy chronological sorting. You can sort the abbreviated months with sort -M, or the other formats simply with sort.

Unix utilities: calendar