After reading the man pages for date I could find a way to get yesterday’s date. Well after some handy ole google-ing I stumbled upon this.
This is just in case you wanted to know…A script to find yesterday’s date in Solaris with a little perl tidbit.
perl -e ‘@T=localtime(time-86400);printf(“%02d-%02d-%02d”,$T[5]+1900,$T[4]+1,$T[3])’
Will print out YYYY-DD-MM
Mainly I’m blogging this so I will know where to find this information if I need it at a later date.