[mdlug] Extracting the day of the Week in BASH

Carl T. Miller millerc at cantonpl.org
Fri Mar 9 23:37:33 EST 2007


Michael Corral wrote:
> 2007-03-09, Monsieur Carl T. Miller a ecrit:
>> Robert Adkins wrote:
>>>     Anyone know either the variable that returns the actual day of the
>>> week or a very short script to extract the day of the week?
>>
>> man +%A
>
> So today is called "No manual entry for +%A"...cool! That's much
> better than boring old "Friday".

Yeah, the odd thing is that I was thinking about the word
mandate when I planned to type "man date".  So without
thinking I typed "man +%A" instead of "date +%A".

I'm just glad I wasn't thinking about "man woman" at the time!

c





More information about the mdlug mailing list