Re: Re: date of 7 days ago

Página superior
Adjuntos:
Obtener este mensaje como un correo
+ (text/plain)
Eliminar este mensaje
Responder a este mensaje
Autor: vodhner@cox.net
Fecha:  
A: Main PLUG discussion list, Main PLUG discussion list
Asunto: 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