cal: adjust osx version to make it more useful, and add linux version along the same lines

This commit is contained in:
Waldir Pimenta 2017-05-01 14:17:01 +01:00
parent 97265cba29
commit b3654135a8
2 changed files with 33 additions and 6 deletions

23
pages/linux/cal.md Normal file
View File

@ -0,0 +1,23 @@
# cal
> Prints calendar information, with the current day highlighted.
- Display a calendar for the current month:
`cal`
- Use monday as the first day of the week:
`cal -m`
- Display a calendar for the current year:
`cal -y`
- Display a calendar for a specific year (4 digits):
`cal {{year}}`
- Display a calendar for a specific month and year:
`cal {{month}} {{year}}`

View File

@ -6,18 +6,22 @@
`cal`
- Display a calendar for a specific month:
- Display a calendar for a specific month (1-12 or name):
`cal -m {{month_number}}`
`cal -m {{month}}`
- Display a 12 month calendar for the current year:
- Display a calendar for the current year:
`cal -y`
- Display a 12 month calendar for a specific year:
- Display a calendar for a specific year (4 digits):
`cal 2016`
`cal {{year}}`
- Display date of Easter (western churches):
- Display a calendar for a specific month and year:
`cal {{month}} {{year}}`
- Display date of Easter (Western Christian churches) in a given year:
`ncal -e {{year}}`