Date: Sun, 5 Mar 2000 17:34:46 +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: <20000305173446.B899@parish> In-Reply-To: <85256899.005BCA3F.00@mail.whtz.com>; from courtney@whtz.com on Sun, Mar 05, 2000 at 11:42:34AM -0500 References: <85256899.005BCA3F.00@mail.whtz.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000305173446.B899>
