Jul 24, 2007 #1 kozlow MIS Mar 3, 2003 326 US Is there a way to use the date command to give me the date from 8 days ago. Say it is Monday July 2, I would want it to return June 25. I thought I had this working at one time, but cannot find my test script...
Is there a way to use the date command to give me the date from 8 days ago. Say it is Monday July 2, I would want it to return June 25. I thought I had this working at one time, but cannot find my test script...
Jul 24, 2007 #2 Chapter11 Technical User Apr 15, 2002 791 US gnu's version of date does this with the -d flag. AIX's date command doesn't do it. Upvote 0 Downvote
Jul 24, 2007 #3 khalidaaa Technical User Jan 19, 2006 2,323 BH Have a look at this: http://www.unix.com/shell-programming-and-scripting-q-and-a/13731-getting-yesterday-date.html perl -e 'print localtime(time() - 691200) . "\n" ' Regards, Khalid Upvote 0 Downvote
Have a look at this: http://www.unix.com/shell-programming-and-scripting-q-and-a/13731-getting-yesterday-date.html perl -e 'print localtime(time() - 691200) . "\n" ' Regards, Khalid
Jul 26, 2007 #4 columb IS-IT--Management Feb 5, 2004 1,231 EU PHV has one of the neatest bits of scripting I've ever seen to solve this. details at faq80-4800 Ceci n'est pas une signature Columb Healy Upvote 0 Downvote
PHV has one of the neatest bits of scripting I've ever seen to solve this. details at faq80-4800 Ceci n'est pas une signature Columb Healy