| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
| List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
| List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| From: | Brian Jones <cbjones AT baynetworks DOT com> |
| To: | "'Eric Rehm'" <rehm AT singingfish DOT com>, |
| cygwin <cygwin AT sourceware DOT cygnus DOT 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 |
| 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 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |