I am finishing up a script that sets the following variable:
DAY=`date +%m%d`
which of course outputs as "0712" <-- for today,July 12
I need to set that variable as YESTERDAY's date,
for a script that will run shortly after midnight.
How can I do this WITHOUT it dropping the lead "0"
please help....thanks
DAY=`date +%m%d`
which of course outputs as "0712" <-- for today,July 12
I need to set that variable as YESTERDAY's date,
for a script that will run shortly after midnight.
How can I do this WITHOUT it dropping the lead "0"
please help....thanks