RE: bash date math

2003-07-31 Thread rick henderson
t; > To: redhat > > Subject: Re: bash date math > > > > > > On Thu, Jul 31, 2003 at 09:45:55AM -0500, rick henderson wrote: > > > In a bash script, I need to know the previous day. > > > > > > if 03012003 then 02282003 > > > if 050120

RE: bash date math

2003-07-31 Thread Ward William E DLDN
> -Original Message- > From: Hal Burgiss [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2003 10:50 AM > To: redhat > Subject: Re: bash date math > > > On Thu, Jul 31, 2003 at 09:45:55AM -0500, rick henderson wrote: > > In a bash script, I

Re: bash date math

2003-07-31 Thread Goncalo
> > In a bash script, I need to know the previous day. > > > > if 03012003 then 02282003 > > if 05012003 then 04302003 > > if 08012003 then 07312003 > > > > using date, I can get todays date. But I need date math. > > $ date -d "-1 day" > Wed Jul 30 10:48:46 EDT 2003 > or $ date -d yesterday or

Re: bash date math

2003-07-31 Thread Hal Burgiss
On Thu, Jul 31, 2003 at 09:45:55AM -0500, rick henderson wrote: > In a bash script, I need to know the previous day. > > if 03012003 then 02282003 > if 05012003 then 04302003 > if 08012003 then 07312003 > > using date, I can get todays date. But I need date math. $ date -d "-1 day" Wed Jul 30 1

bash date math

2003-07-31 Thread rick henderson
Dear list, In a bash script, I need to know the previous day. if 03012003 then 02282003 if 05012003 then 04302003 if 08012003 then 07312003 using date, I can get todays date. But I need date math. any suggestions on how to do this? Rick -- redhat-list mailing list unsubscribe mailto:[EMAI