display previous one day's date using SUN Solaris 7
Posted on 2002-03-06
I have some UNIX script need to help from you all experts.
How do display previous one day's using UNIX script on SUN Solaris?
The date of type display is YYMMDD
E.g: (1) "For display today date"
Thu Mar 7 13:36:12 SGT 2002
E.g: (2) "For display today date with type YYMMDD"
#date -u '+%y%m%d'
How to display the date on one day before current day?
I meant if today is 020307 (2002 March 07), when I type the command it should be display: 020306 (2002 March 6).
Thank you very much!