Re: date command two days from now



I would use perl,

perl -e ' $string=localtime( time()+48*3600),print
"$string \n"'
Thu Jan 25 18:52:05 2007


regards,
esv.

--- Andrew.Townsend@xxxxxxxxx wrote:

Is there a way to get the date from say two days
from now or two hours from
now for scripting purposes?

I mean like:

date +"%d %h %y" gives you 23 Jan 07

But I want

23 Jan 07

Or instead of "Tuesday" I'm looking for "Thursday".


Any ideas?

Thanks,



Enrique Sanchez Vela
email: esanchezvela@xxxxxxxxx
--------------------------------------
http://www.savetheinternet.com/



____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com



Relevant Pages