Bash and $(date)
Brian Jones
cbjones@baynetworks.com
Mon Nov 15 12:10:00 GMT 1999
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
More information about the Cygwin
mailing list