Date: Sun, 5 Mar 2000 17:40:36 +0000 From: Mark Ovens <mark@ukug.uk.freebsd.org> To: courtney@whtz.com Cc: questions@freebsd.org Subject: Re: using date for file names Message-ID: <20000305174036.E899@parish> In-Reply-To: <20000305173446.B899@parish>; from mark@dogma.freebsd-uk.eu.org on Sun, Mar 05, 2000 at 05:34:46PM %2B0000 References: <85256899.005BCA3F.00@mail.whtz.com> <20000305173446.B899@parish>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 05, 2000 at 05:34:46PM +0000, Mark Ovens wrote: > 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 > ...or, % mv original.txt `date +%m%d%y`.doc in your case ;-) > 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 -- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000305174036.E899>