Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cal(1) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

cal(1)                                                               cal(1)

NAME
     cal - print calendar

SYNOPSIS
     cal [[month] year]

DESCRIPTION
     cal writes a calendar to standard output.

OPERANDS
     No argument specified:
            cal prints the calendar for the current month.

     month  cal prints the calendar for the specified month.

            The possible values for month are 1 to 12.

            If you specify a value for month, you must also specify a value
            for year.

            month not specified:

            cal prints the calendar for the entire year.

     year   The calendar for the specified year is printed.

            The possible values for year are 1 to 9999.

            Please note that cal 88, for example, refers to 88 A.D., not
            1988.

     Note:  If you call cal using the argument 1752 or the arguments
            9 1752, the output for September is shorter than usual. This is
            because cal allows for an adjustment of 11 days which took
            place in that month in 1752.

EXIT STATUS
     The exit status is 0 when successful and > 0 when the values specified
     for year or month lie outside the permissible range.

ERROR MESSAGE
     Bad argument [ for month | for year ]

     The values you have specified for year or month are not within the
     permissible range.

LOCALE
     The LCMESSAGES environment variable governs the language in which
     message texts are displayed.

     LCCTYPE governs character classes, character conversion (shifting)
     and the behavior of character classes in regular expressions.



Page 1                       Reliant UNIX 5.44                Printed 11/98

cal(1)                                                               cal(1)

     If LCMESSAGES or LCCTYPE is undefined or is defined as the null
     string, it defaults to the value of LANG. If LANG is likewise unde-
     fined or null, the system acts as if it were not internationalized.

     The LCALL environment variable governs the entire locale. LCALL
     takes precedence over all the other environment variables which affect
     internationalization.

EXAMPLES
     Print the calendar for February 1996 in the C locale:

     $ cal 2 1996

        February 1996
     Su Mo Tu We Th Fr Sa
                  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


































Page 2                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026