Hi all,
i am looking for a method of determining the weekday when date is know (bash, if possible).
Let's say that i am looking to get the weekday for MAY 01 2011, how can i convert this into Sunday or SUN?
any suggestions?
Hi all,
i am looking for a method of determining the weekday when date is know (bash, if possible).
Let's say that i am looking to get the weekday for MAY 01 2011, how can i convert this into Sunday or SUN?
any suggestions?
$ date "+%A"
Monday
$ date "+%a"
Mon
GNU date
date -d'MAY 01 2011' '+%A'
thank you all, i'll take a look at that link.
date -d'MAY 01 2011' '+%A' appears to be an incorrect usage of date command... at least under macos 10.6