Re: [Nolug] Finding out what "yesterday" was, from bash

From: -ray <ray_at_ops.selu.edu>
Date: Fri, 30 Apr 2004 23:48:38 -0500 (CDT)
Message-ID: <Pine.LNX.4.44.0404302347190.17380-100000@romulus.csd.selu.edu>

On Fri, 30 Apr 2004, Ron Johnson wrote:

> Hi,
>
> How can a script find out what yesterday was?
>
> In it's "time/date" commands, OpenVMS has defined the constants
> YESTERDAY, TODAY, and TOMORROW.
>
> Does date(1) have anything similar?

DATE=`date --date '1 day ago'`

or date --date 'yesterday', with GNU date.

ray

___________________
Nolug mailing list
nolug@nolug.org
Received on 05/01/04

This archive was generated by hypermail 2.2.0 : 12/19/08 EST