Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: Brian Jones To: "'Eric Rehm'" , cygwin 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: 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 AT singingfish DOT com] > Sent: Monday, November 15, 1999 10:41 AM > To: cygwin AT sourceware DOT cygnus DOT 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 AT sourceware DOT cygnus DOT com > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com