Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@sourceware.cygnus.com>
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
From: Brian Jones <cbjones@baynetworks.com>
To: "'Eric Rehm'" <rehm@singingfish.com>,
        cygwin <cygwin@sourceware.cygnus.com>
Subject: RE: Bash and $(date)
Date: Mon, 15 Nov 1999 15:03:54 -0500
Message-ID: <000a01bf2fa4$8bc26c60$effcf584@rtp-cbjones.corpeast.baynetworks.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
Importance: Normal
In-Reply-To: <NABBKIOLBMIGNJNIFNOMMEJJFJAA.rehm@singingfish.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3

date -d '1 day ago' +%d

For the number representing yesterday's day of the month.  See date --help
for more information.  Of course if cygwin always came with man pages the
answer would be RTFM.

Brian

> -----Original Message-----
> From: Eric Rehm [mailto:rehm@singingfish.com]
> Sent: Monday, November 15, 1999 10:41 AM
> To: cygwin@sourceware.cygnus.com
> Subject: FW: Bash and $(date)
>
>
> Is there an easy way to get *yesterday's* date using the date command
> in a bash script?
>
> I know how to parse the date, use integer variables, etc.,
> but I'd rather
> not have to put in all the year, month, day logic into a script.
>
> /eric rehm
>
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

