Re: Re: date of 7 days ago

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: vodhner@cox.net
日付:  
To: Main PLUG discussion list, Main PLUG discussion list
題目: 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