Home » » Linux Ascendency Trouble Tutorial For Beginners 31 - Cal Command

Linux Ascendency Trouble Tutorial For Beginners 31 - Cal Command

CAL(1)                  BSD General Commands Manual                 CAL(1)  NAME      cal, ncal — displays a calendar together with the appointment of Easter  SYNOPSIS      cal [-3hjy] [-A number] [-B number] [[month] year]      cal [-3hj] [-A number] [-B number] -m calendar month [year]      ncal [-3bhjJpwySM] [-A number] [-B number] [-s country_code] [[month]          year]      ncal [-3bhJeoSM] [-A number] [-B number] [year]      ncal [-CN] [-H yyyy-mm-dd] [-d yyyy-mm]  DESCRIPTION      The cal utility displays a unproblematic calendar inward traditional format and      ncal offers an alternative layout, to a greater extent than options together with the appointment of      Easter.  The novel format is a picayune cramped but it makes a yr fit      on a 25x80 terminal.  If arguments are non specified, the current      calendar month is displayed.       The options are equally follows:       -h      Turns off highlighting of today.       -J      Display Julian Calendar, if combined amongst the -o option, dis‐              play appointment of Orthodox Easter according to the Julian Calen‐              dar.       -e      Display appointment of Easter (for western churches).       -j      Display Julian days (days one-based, numbered from January              1).       -m month              Display the specified month.  If calendar month is specified equally a dec‐              imal number, it may hold upwardly followed past times the missive of the alphabet ‘f’ or ‘p’ to              betoken the next or preceding calendar month of that number,              respectively.       -o      Display appointment of Orthodox Easter (Greek together with Russian Orthodox              Churches).       -p      Print the province codes together with switching days from Julian to              Gregorian Calendar equally they are assumed past times ncal.  The country              code equally determined from the local environs is marked with              an asterisk.       -s country_code              Assume the switch from Julian to Gregorian Calendar at the              appointment associated amongst the country_code.  If non specified,              ncal tries to approximate the switch appointment from the local environ‐              ment or falls dorsum to September 2, 1752.  This was when Great              U.K. together with her colonies switched to the Gregorian Calendar.       -w      Print the seat out of the calendar week below each calendar week column.       -y      Display a calendar for the specified year. This selection is              implied when a yr but no calendar month are specified on the command              line.       -3      Display the previous, electrical flow together with adjacent calendar month surrounding              today.       -1      Display alone the electrical flow month. This is the default.       -A number              Months to add together after. The specified seat out of months is added              to the terminate of the display. This is inward improver to whatever date              attain selected past times the -y, -3, or -1 options. For example,              “cal -y -B2 -A2” shows everything from Nov of the previ‐              ous yr to Feb of the next year. Negative numbers              are allowed, inward which instance the specified seat out of months is              subtracted. For example, “cal -y -B-6” shows July to Decem‐              ber. And “cal -A11” merely shows the adjacent 12 months.       -B number              Months to add together before. The specified seat out of months is added              to the starting fourth dimension of the display. See -A for examples.       -C      Switch to cal mode.       -N      Switch to ncal mode.       -d yyyy-mm              Use yyyy-mm equally the electrical flow appointment (for debugging of appointment selec‐              tion).       -H yyyy-mm-dd              Use yyyy-mm-dd equally the electrical flow appointment (for debugging of high‐              lighting).       -M      Weeks start on Monday.       -S      Weeks start on Sunday.       -b      Use oldstyle format for ncal output.       Influenza A virus subtype H5N1 unmarried parameter specifies the yr (1–9999) to hold upwardly displayed; note      the yr must hold upwardly fully specified: “cal 89” volition non display a calen‐      dar for 1989.  Two parameters announce the calendar month together with year; the calendar month is      either a seat out betwixt 1 together with 12, or a total or abbreviated advert as      specified past times the electrical flow locale.  Month together with yr default to those of      the electrical flow arrangement clock together with fourth dimension zone (so “cal -m 8” volition display a      calendar for the calendar month of August inward the electrical flow year).       Not all options tin hold upwardly used together. For example, the options -y,      -3, together with -1 are mutually exclusive. If inconsistent options are given,      the after ones own got precedence over the before ones.       Influenza A virus subtype H5N1 yr starts on Jan 1.  SEE ALSO      calendar(3), strftime(3)  HISTORY      Influenza A virus subtype H5N1 cal ascendance appeared inward Version five AT&T UNIX.  The ncal command      appeared inward FreeBSD 2.2.6.  The output of the cal ascendance is supposed      to hold upwardly flake for flake compatible to the master Unix cal command,      because its output is processed past times other programs similar CGI scripts,      that should non hold upwardly broken. Therefore it volition ever output 8 lines,      fifty-fifty if alone vii incorporate data. This extra blank business besides appears with      the master cal command, at to the lowest degree on Solaris 8  AUTHORS      The ncal ascendance together with manual were written past times Wolfgang Helbig      <helbig@FreeBSD.org>.  BUGS      The assignment of Julian–Gregorian switching dates to province codes      is historically naive for many countries.       Not all options are compatible together with using them inward dissimilar orders      volition plough over varying results.  BSD                           March 14, 2009                           BSD 

0 comments:

Post a Comment

Search

Blog Archive