![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Date Question | DKNUCKLES | Shell Programming and Scripting | 2 | 10-21-2007 04:44 PM |
| Date Scripting Question | BigDawg32 | Shell Programming and Scripting | 6 | 10-19-2006 09:40 AM |
| Date question | 12yearold | Shell Programming and Scripting | 1 | 07-25-2006 10:46 PM |
| date question | rdeschene3 | Shell Programming and Scripting | 3 | 06-01-2005 04:46 PM |
| date question | ankurgupta | UNIX for Advanced & Expert Users | 3 | 03-13-2002 10:11 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Date question
I am creating a shell script and have a question about how to determine yesterdays date. In my script, I can determine today by:
today=`date '+%Y%m%d'` but I am not sure how to determine yesterday. In other languages, I would just subtract one from today, but I don't know how to do that here. Please understand that I do NOT want to change the system date, I just want to determine the date for yesterday in a YYYYMMDD format. Any help would be greatly appreciated. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Please refer to the scripts section of the board. Perderabo (IIRC) has done all the work with calulating dates and put it there.
bakunin |
|||
| Google The UNIX and Linux Forums |