I have a file that contains todays date(for ex- test_08/30/2013)
Now I want a script which will run and change the name of the file and put yesterday's date
(for ex- test_08/29/2013)
Please help.
---------- Post updated at 04:40 AM ---------- Previous update was at 04:31 AM ----------
I tried doing below. I am using ksh shell and sun OS
DATE_STAMP=`TZ=CST+24 date +%m/%d/%Y`
echo $DATE_STAMP
08/29/2013
Then mv test_08/30/2013 test_$DATE_STAMP
But it is not working.