From owner-freebsd-questions Sun Mar 5 10:33:50 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 5A7F137BADD for ; Sun, 5 Mar 2000 10:33:45 -0800 (PST) (envelope-from mark@dogma.freebsd-uk.eu.org) Received: (qmail 20971 invoked from network); 5 Mar 2000 18:33:40 -0000 Received: from userab89.uk.uudial.com (HELO parish.my.domain) (62.188.130.188) by smtp.dial.pipex.com with SMTP; 5 Mar 2000 18:33:40 -0000 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id SAA01537; Sun, 5 Mar 2000 18:33:53 GMT (envelope-from mark) Date: Sun, 5 Mar 2000 18:33:53 +0000 From: Mark Ovens To: Ben Smithurst Cc: courtney@whtz.com, questions@FREEBSD.ORG Subject: Re: using date for file names Message-ID: <20000305183353.G899@parish> References: <85256899.0062DDEE.00@mail.whtz.com> <20000305181557.I16946@strontium.scientia.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i 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 +0000 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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