Hi,
I am trying to create a calendar (on the fly) that will display next month.
I'm not talking about June 2010 (although since this is may that is next month). I want to have a script that will display a calendar for next month no matter when it is run.
If it is run in February, it will create a calendar for March.
If it is run in June, it will create a calendar for July.
If it is run in December, it will create a calendar for January.
I have tried:
Code:
cal -m $(date +"%m %Y" -d "today + 1 month")
As this works on Linux, Unfortunately on my Mac the 'date' command doesn't like the format.
Does anyone have any ideas?