On Fri, 2004-04-30 at 23:48 -0500, -ray wrote:
> 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.
Sweet... (Although it's not in the man page :()
$ date --date '1 month ago' +"%Y-%m"
2004-04
-- Ron Johnson <ron.l.johnson@cox.net> ___________________ Nolug mailing list nolug@nolug.orgReceived on 05/01/04
This archive was generated by hypermail 2.2.0 : 12/19/08 EST