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 [...]
Posts Tagged ‘solaris’
A Nerdy Tip of the Day
Posted: 22nd September 2008 by wickdawg in UncategorizedTags: date, perl, solaris
0