Date: Sun, 5 Mar 2000 18:33:53 +0000 From: Mark Ovens <mark@ukug.uk.freebsd.org> To: Ben Smithurst <ben@scientia.demon.co.uk> Cc: courtney@whtz.com, questions@FREEBSD.ORG Subject: Re: using date for file names Message-ID: <20000305183353.G899@parish> In-Reply-To: <20000305181557.I16946@strontium.scientia.demon.co.uk>; from ben@scientia.demon.co.uk on Sun, Mar 05, 2000 at 06:15:57PM %2B0000 References: <85256899.0062DDEE.00@mail.whtz.com> <20000305181557.I16946@strontium.scientia.demon.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 05, 2000 at 06:15:57PM +0000, Ben Smithurst wrote: > courtney@whtz.com wrote: > > > when I do mv original.txt `date +%m%d%y`.doc i get a file that is named > > "date +%d%m%y.doc" > > let me guess, you used single quotes --> ' > rather than a backtick --> ` > > Mark really should have said, > > mv original.txt $(date +%m%d%y).doc > Yes, OK, fair comment. I just gave a basic command line that worked for the poster to adapt for his script and I use csh(1) so ``$(date +%m%d%y)'' don't work. > as there is less chance of a misunderstanding. (Also, the $(foo) format > is newer, and nests properly, but that's not really imporant here.) > > -- > Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D -- 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?20000305183353.G899>