This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: Bash and $(date)
- To: 'Eric Rehm' <rehm at singingfish dot com>, cygwin <cygwin at sourceware dot cygnus dot com>
- Subject: RE: Bash and $(date)
- From: Brian Jones <cbjones at baynetworks dot com>
- Date: Mon, 15 Nov 1999 15:03:54 -0500
date -d '1 day ago' +%d
For the number representing yesterday's day of the month. See date --help
for more information. Of course if cygwin always came with man pages the
answer would be RTFM.
Brian
> -----Original Message-----
> From: Eric Rehm [mailto:rehm@singingfish.com]
> Sent: Monday, November 15, 1999 10:41 AM
> To: cygwin@sourceware.cygnus.com
> Subject: FW: Bash and $(date)
>
>
> Is there an easy way to get *yesterday's* date using the date command
> in a bash script?
>
> I know how to parse the date, use integer variables, etc.,
> but I'd rather
> not have to put in all the year, month, day logic into a script.
>
> /eric rehm
>
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com