Name

calendar

Synopsis

    calendar [options]

Read your calendar file and display all lines that contain the current date. The calendar file is like a memo board. You create the file and add entries like the following:

    5/4     meeting with design group at 2 pm
    may 6   pick up anniversary card on way home

When you run calendar on May 4, the first line is displayed. calendar can be automated by using crontab or at, or by including it in your startup files, .profile or .login.

Solaris Option

-

Allow a privileged user to invoke calendar for all users, searching each user’s login directory for a file named calendar. Entries that match are sent to a user via mail. This feature is intended for use via cron. It is not recommended in networked environments with large user bases.

Mac OS X Options

The Mac OS X version of calendar has a number of additional features not described here. See calendar(1) for more details.

-a

Same as the Solaris - option, above.

-A count

Print lines matching today’s date, and for the next count days forward.

-B count

Print lines matching today’s date, and for the previous count days backward.

-dMMDD[[YY]YY]

Print entries for the given date. The year may be specified using either two or four digits.

-f file

Use file instead of $HOME/calendar.

-F daynum

Day number daynum is the “Friday,” i.e., the day before the weekend starts. The default is 5.

-l count

Look ahead count days and display the entries for that date also.

-tdd[.mm[.yyyy]]

For testing, set the date to the given value.

-w ...

Get Unix in a Nutshell, 4th Edition 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.