[mdlug] Extracting the day of the Week in BASH
bob dion
bobdion at starline-ent.com
Fri Mar 9 16:25:29 EST 2007
Duane Brown wrote:
> Robert Adkins wrote:
>> My Google-Fu seems to be composed of weak sauce today.
>>
>> I am rewriting some scripts and due to the nature of what they do, I
>> would be best served to be able to pull up the actual name of the day in
>> order to properly organize the final resting place of some data.
>>
>> 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?
>>
>> Thanks,
>> Rob
>>
> Is what you're looking for "date -A" or for the 3 char abbr "date -a"?
>
> I guess some more facts might be called for.
>
Carl had a typo there it's 'date +%a' or 'date +%A'
BD
More information about the mdlug
mailing list