Page 1 of 1

display any month calendar the unix command 'cal' way

Posted: 10 Feb 2020 15:04
by scavenger
hi

i need to display the current and previous month' calendar the unix way in a menu I build:

Code: Select all

   February 2020
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
Please has anyone ever developed this so i can reuse it? I found a powershell example at https://communary.net/2014/12/21/show-c ... owershell/ but it's massive and I'm pretty sure this can be done under 10 lines.
thanks

Re: display any month calendar the unix command 'cal' way

Posted: 10 Feb 2020 16:02
by Squashman