[mdlug] Extracting the day of the Week in BASH

Robert Adkins radkins at impelind.com
Fri Mar 9 15:36:07 EST 2007


Ray,

    You da' man!

    Thanks,
    Rob

Ingles, Raymond wrote:
>> From: Robert Adkins
>>     
>
>   
>>     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?
>>     
>
>  date | cut -d" " -f 1
>
>  Works for me, on Linux and Solaris.
>
>  Sincerely,
>
>  Ray Ingles                                       (313) 227-2317
>
>  "To admit that an opponent might be both honest and intelligent
>  is felt to be intolerable. It is more immediately satisfying to
>      shout that he is a fool or a scoundrel." - George Orwell
> The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. 
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug
>   



More information about the mdlug mailing list