Hi,
I want to make Monday as the first day of the month while using cal command
when I execute without bash, its working fine
/bin/sh
cal -m 03 2013
March 2013
Mo Tu We Th Fr Sa Su
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 30 31
but
when I use
/usr/bin/bash
cal -m 03 2013
cal: illegal option -- m
usage: cal [ [month] year ]
can you please help me to get Monday as first day of the month.?
Regards
Anurag
Jotne
May 8, 2013, 10:48am
2
For me it does not work on bash.
cal -m 03 2013
gives sunday as 1 day.
Ubuntu 12.04
Right, it does not work in bash.
Can you please help me to put Monday as first day while using cal?
---------- Post updated at 09:21 PM ---------- Previous update was at 08:26 PM ----------
A mistake, its not working on SunOS but on Linux.
clx
May 8, 2013, 11:53am
5
No,
Cal -m
command
I want to make Monday as first week of the month when I use cal command.
Cal -m makes it on Linux, but not un SunOS
What exactly is the purpose of keeping Monday as the first day of a week? May be if the purpose is shared, forum members could provide an alternate (or better/efficient) solution.