curdate=$(date +"%d-%b-%y")
How to get the yesterday's date.
curdate=$(date +"%d-%b-%y")
How to get the yesterday's date.
Refer http://www.unix.com/answers-frequently-asked-questions/13785-yesterdays-date-date-arithmetic.html
Kindly use google search on this site...