Re: using date command to get yesterday's date

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for you reply!
It is exactly what we need.
----- Original Message -----
From: "Anthony E. Greene" <agreene@xxxxxxxxx>
Date: Thursday, October 9, 2003 9:22 am
Subject: Re: using date command to get yesterday's date

> On 08-Oct-2003/08:50 -0400, Marvin Blackburn 
> <mblackburn@xxxxxxxxxxxxx> wrote:
> >Is there anyway to use `date` to calculate yesterdays date.
> >If not, is there any other way to do this easily?
> 
>  date -d yesterday
> or
>  date -d '1 day ago'
> 
> 
> The latter syntax is more flexible. I often use it in scripts.
> 
> Tony
> -- 
> Anthony E. Greene <')" 
> >Anthony%20E.%20Greene%20%3Cagreene@xxxxxxxxx%3E>OpenPGP Key: 
> 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
> AOL/Yahoo Messenger: TonyG05    HomePage: <" 
> target="l">http://www.pobox.com/~agreene/>Linux. The choice of a 
> GNU generation <" target="l">http://www.linux.org/>
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
> 


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux