Re: Solaris 10: How can I get a date that is exactly 30 days back? In article <485a93f3$0$52555$8046368a@newsreader.iphouse.net> ,
Doug McIntyre <merlyn@geeks.org> wrote:
> Anoop <anoopkumarv@gmail.com> writes:
> >I am unable to do this - I used to use a variation of the following
> >command to get a date that is a few hours back:
>
> >TZ=GMT+6 date '+%y%m%d%H%M'
>
> >But I think this has its limits - what is the best way I can get a
> >date that is x number of days back?
>
> Use GNU date..
>
> If you absolutely must use something only pre-installed, then you'll
> have to write a perl/C/C++/whatever program to do the same thing GNU
> date already has written.
And if you aren't allowed to write code or scripts on the machine,
there's always that wonderful thing called a calendar. Banks used to
give them away.
--
DeeDee, don't press that button! DeeDee! NO! Dee...
[I filter all Goggle Groups posts, so any reply may be automatically by ignored] |