Obtaining yesterday's date
On 30Jan2011 12:54, sunhux G <firstname.lastname@example.org> wrote:
| I'm trying to get yesterday's date in YYYYMMDD format.
| Anyone know if RHES 4.x has GNU date that allows
| yesterday=$(date -d "-1 day" '+%Y%m%d')
Yes, it does.
| & if there's no GNU date, how do we go about obtaining it?
Off the many mirror sites?
Cameron Simpson <email@example.com> DoD#743
My favorite recently spotted T-shirt: "U.S. Marines: When it absolutely
positively has to be destroyed overnight."
- firstname.lastname@example.org (Avoid normal situations.)
redhat-list mailing list