[mdlug] Extracting the day of the Week in BASH

Duane Brown dobwan at earthlink.net
Fri Mar 9 15:37:05 EST 2007


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
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug
>   
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.

Duane



More information about the mdlug mailing list