Re: Re: date of 7 days ago

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: vodhner@cox.net
Date:  
To: Main PLUG discussion list, Main PLUG discussion list
Subject: Re: Re: date of 7 days ago
Dan Lund wrote:
> Whats a nice quick way to find out what the
> date was 7 days ago?
> ...
>    date --date='7 days ago'


Note that only Gnu "date" (standard in Linux) can do this.
In non-Gnu environments you have to get your shoes dirty to do this correctly.

I just yesterday discovered the $SECONDS variable in ksh and bash. It lets you measure elapsed time in a shell script without spawning separate processes -- very nice.


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss