I didn't realize the GNU version of the'date' command had all these options, but the 'tomorrow' and 'yesterday' don't seem to work for me. A bunch of the other forms I tried worked fine. -------------------- [rep@ns1 ~]$ date --date 'yesterday' Tue May 12 08:11:40 EDT 1998 [rep@ns1 ~]$ date Tue May 12 08:10:43 EDT 1998 [rep@ns1 ~]$ date --date 'yesterday' Tue May 12 08:11:56 EDT 1998 [rep@ns1 ~]$ date --date 'tomorrow' Tue May 12 08:12:03 EDT 1998 [rep@ns1 ~]$ date --date 'last friday' Fri May 8 00:00:00 EDT 1998 [rep@ns1 ~]$ date --date '1 day ago' Mon May 11 08:11:37 EDT 1998 [rep@ns1 ~]$ date --date '3 days' Fri May 15 08:12:17 EDT 1998 [rep@ns1 ~]$ date --v date (GNU sh-utils) 1.16 -------------------- Is there something obvious that I'm missing here? This is in RH 5.0 with all the updates applied (at least the last time I checked, a few days ago). pete peterson GenRad, Inc. 7 Technology Park Drive Westford, MA 01886-0033 [EMAIL PROTECTED] or [EMAIL PROTECTED] +1-978-589-7478 (GenRad); +1-978-256-5829 (Home: Chelmsford, MA) +1-978-589-2088 (Closest FAX); +1-978-589-7007 (Main GenRad FAX) > Date: Sun, 10 May 1998 12:27:02 -0700 (PDT) > From: John H Darrah <[EMAIL PROTECTED]> > To: Redhat List <[EMAIL PROTECTED]> > Subject: Re: HELP needed with shell-script. > Message-ID: <[EMAIL PROTECTED]> > Content-Type: TEXT/PLAIN; charset=US-ASCII > > On Sun, 10 May 1998, Igmar Palsenberg wrote: > > > I want to add a directory yo a zip file, but the name of the zip file > > must the day before the current day. > > > > Thus, a file must be create with the following name 05-10-98.zip > > > > zip -r $(date --date 'yesterday' '+%m-%d-%y.zip') your_dir > > > I don't know if this is the zip command you are > using, but the date command above will return a > filename created from yesterdays date. > > -- > John Darrah (u05192) | Dept: N/C Programming > Giddens Industries | > PO box 3190 | Ph: (206) 767-4212 #229 > Everett WA 98203 | Fx: (206) 764-9639 -- PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES! http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.