From owner-freebsd-questions Sun Mar 5 9:34:43 2000 Delivered-To: freebsd-questions@freebsd.org Received: from monsoon.mail.pipex.net (monsoon.mail.pipex.net [158.43.128.69]) by hub.freebsd.org (Postfix) with SMTP id 2CE3537BADA for ; Sun, 5 Mar 2000 09:34:37 -0800 (PST) (envelope-from mark@dogma.freebsd-uk.eu.org) Received: (qmail 15245 invoked from network); 5 Mar 2000 17:34:34 -0000 Received: from userap49.uk.uudial.com (HELO parish.my.domain) (62.188.136.10) by smtp.dial.pipex.com with SMTP; 5 Mar 2000 17:34:34 -0000 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id RAA01052; Sun, 5 Mar 2000 17:34:47 GMT (envelope-from mark) Date: Sun, 5 Mar 2000 17:34:46 +0000 From: Mark Ovens To: courtney@whtz.com Cc: questions@freebsd.org Subject: Re: using date for file names Message-ID: <20000305173446.B899@parish> References: <85256899.005BCA3F.00@mail.whtz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <85256899.005BCA3F.00@mail.whtz.com>; from courtney@whtz.com on Sun, Mar 05, 2000 at 11:42:34AM -0500 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Mar 05, 2000 at 11:42:34AM -0500, courtney@whtz.com wrote: > > > hey everyone- > > I am looking to rename a file on a nightly basis with the current date > (i.e. original.txt will become 030500.doc at midnight tonight) and so > on...what command do I have to use in my shell script to get this working?? > % mv original.txt `date +%d%m%y`.doc will do the trick HTH > thanks! > > bern > > Bernie Courtney > Z100 New York Engineering > mailto:courtney@whtz.com > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Microsoft: Where do you want to go today? Linux: Where do you want to go tomorrow? BSD: Are you guys coming, or what? -Poster at LinuxWorld 2000 ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message