Bash and $(date)
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.
> -----Original Message-----
> From: Eric Rehm [ mailto:firstname.lastname@example.org ]
> Sent: Monday, November 15, 1999 10:41 AM
> To: email@example.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 firstname.lastname@example.org
Want to unsubscribe from this list?
Send a message to email@example.com
More information about the Cygwin