Re: Obtain the date of three days ago
From: Chris F.A. Johnson (c.f.a.johnson_at_rogers.com)
Date: 04/30/03
- Previous message: Nicholas Bachmann: "Re: BSD"
- In reply to: Nicholas Bachmann: "Re: Obtain the date of three days ago"
- Next in thread: Randal L. Schwartz: "Re: Obtain the date of three days ago"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 30 Apr 2003 06:51:35 GMT
On Tue, 29 Apr 2003 at 21:36 GMT, Nicholas Bachmann wrote:
> davehinz@spamcop.net wrote:
>> Someone who looks an awful lot like Jon Mann <jon@spinis-associates.co.uk> wrote:
>>
>>>Joom wrote:
>>
>>
>>>With GNU date:
>>> date -d '3 day ago'
>>
>>
>> Well, I'll be darned. Never stumbled across that one before. Thanks
>> for that...
>
> It even works with the more English sounding 'days'...
Or:
date -d " -3 days"
If yo don't have GNU date, and cannot install it, it's not hard to
do in a shell script. Google the archives of comp.unix.shell for
many examples.
--
Chris F.A. Johnson http://cfaj.freeshell.org
===================================================================
My code (if any) in this post is copyright 2003, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License
- Previous message: Nicholas Bachmann: "Re: BSD"
- In reply to: Nicholas Bachmann: "Re: Obtain the date of three days ago"
- Next in thread: Randal L. Schwartz: "Re: Obtain the date of three days ago"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]