Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cal: improve util-linux page and split POSIX, osx and *BSD #12172

Merged
16 changes: 16 additions & 0 deletions pages/common/cal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# cal

> Prints calendar information, with the current day highlighted.
vitorhcl marked this conversation as resolved.
Show resolved Hide resolved
> More information: <https://manned.org/cal.1p>.

- Display a calendar for the current month:

`cal`

- Display a calendar for a specific year (4 digits):
vitorhcl marked this conversation as resolved.
Show resolved Hide resolved

`cal {{year}}`

- Display a calendar for a specific month and year:

`cal {{month}} {{year}}`
32 changes: 32 additions & 0 deletions pages/freebsd/cal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# cal

> Prints calendar information, with the current day highlighted.
vitorhcl marked this conversation as resolved.
Show resolved Hide resolved
> More information: <https://man.freebsd.org/cgi/man.cgi?cal>.

- Display a calendar for the current month:

`cal`

- Display a calendar for a specific year (4 digits):
vitorhcl marked this conversation as resolved.
Show resolved Hide resolved

`cal {{year}}`

- Display a calendar for a specific month and year:

`cal {{month}} {{year}}`

- Display the whole calendar for the current year:

`cal -y`

- Don't [h]ighlight today and display [3] months spanning the date:

`cal -h -3 {{month}} {{year}}`

- Display the 2 months [B]efore and 3 [A]fter a specific [m]onth of the current year:

Check failure on line 26 in pages/freebsd/cal.md

View workflow job for this annotation

GitHub Actions / build

efore ==> before, afore

Check failure on line 26 in pages/freebsd/cal.md

View workflow job for this annotation

GitHub Actions / build

fter ==> after

`cal -A 3 -B 2 {{month}}`

- Display [j]ulian days (one-based, numbered from January 1):

`cal -j`
10 changes: 9 additions & 1 deletion pages/linux/cal.md
vitorhcl marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,18 @@

`cal`

- Display previous, current and next month:
- Display [3] months spanning the date:

`cal -3`

- Display the whole calendar for the current [y]ear:

`cal --year`

- Display the next twelve months:

`cal --twelve`

- Use Monday as the first day of the week:

`cal --monday`
Expand Down
36 changes: 36 additions & 0 deletions pages/netbsd/cal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# cal

> Prints calendar information, with the current day highlighted.
vitorhcl marked this conversation as resolved.
Show resolved Hide resolved
> More information: <https://man.freebsd.org/cgi/man.cgi?cal>.

- Display a calendar for the current month:

`cal`

- Display a calendar for a specific year (4 digits):
vitorhcl marked this conversation as resolved.
Show resolved Hide resolved

`cal {{year}}`

- Display a calendar for a specific month and year:

`cal {{month}} {{year}}`

- Display the whole calendar for the current year using [j]ulian days (one-based, numbered from January 1):

`cal -y -j`

- Don't [h]ighlight today and display [3] months spanning the date:

`cal -h -3 {{month}} {{year}}`

- Display the 2 months [B]efore and 3 [A]fter a specific [m]onth of the current year:

Check failure on line 26 in pages/netbsd/cal.md

View workflow job for this annotation

GitHub Actions / build

efore ==> before, afore

Check failure on line 26 in pages/netbsd/cal.md

View workflow job for this annotation

GitHub Actions / build

fter ==> after

`cal -A 3 -B 2 {{month}}`

- Display a specific number of months before and after ([C]ontext) the specified month:

Check failure on line 30 in pages/netbsd/cal.md

View workflow job for this annotation

GitHub Actions / build

ontext ==> context

`cal -C {{months}} {{month}}`

- Specify the starting [d]ay of the week (0: Sunday, 1: Monday, ..., 6: Saturday):

`cal -d {{0..6}}`
32 changes: 32 additions & 0 deletions pages/openbsd/cal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# cal

> Prints calendar information, with the current day highlighted.
vitorhcl marked this conversation as resolved.
Show resolved Hide resolved
> More information: <https://man.openbsd.org/cal>.

- Display a calendar for the current month:

`cal`

- Display a calendar for a specific year (4 digits):
vitorhcl marked this conversation as resolved.
Show resolved Hide resolved

`cal {{year}}`

- Display a calendar for a specific month and year:

`cal {{month}} {{year}}`

- Display a calendar for the current [y]ear:

`cal -y`

- Display [j]ulian days (one-based, numbered from January 1):
sebastiaanspeck marked this conversation as resolved.
Show resolved Hide resolved

`cal -j`

- Use [m]onday as week start instead of Sunday:

`cal -m`

- Number [w]eek numbers (incompatible with `-j`):

`cal -w`
Loading