I use GNU gdate myself. Look for sh-utils in packages.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
MikeM
Sent: Tuesday, May 31, 2005 8:54 AM
To: Timothy A. Napthali; [email protected]
Subject: Re: Getting Yesterday's Date (Repost due to error)
Importance: Low
On 5/31/2005 at 8:22 AM Timothy A. Napthali wrote:
|Sorry for previous version of this post. I sent it accidentally before I
|was finished.
|
|In Linux I was able to do this:
|
|date +%Y%m%d -d "-1 day
|
|Which would give yesterdays date as 20050530
|
|How can I do this in OpenBSD? I've mucked about with date -r $(expr
|$(date +%d) - 86400) but I can't get it to work properly.
=============
This may help
http://www.unixreview.com/documents/s=9020/ur0401d/ur0401d_script.htm