From owner-freebsd-questions Sun Mar 5 10:16:39 2000 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 1470037BAB5 for ; Sun, 5 Mar 2000 10:16:25 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.12 #1) id 12RfZO-0000h5-00; Sun, 05 Mar 2000 18:15:58 +0000 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.12 #7) id 12RfZN-0003rH-00; Sun, 05 Mar 2000 18:15:57 +0000 Date: Sun, 5 Mar 2000 18:15:57 +0000 From: Ben Smithurst To: courtney@whtz.com Cc: mark@ukug.uk.freebsd.org, questions@FREEBSD.ORG Subject: Re: using date for file names Message-ID: <20000305181557.I16946@strontium.scientia.demon.co.uk> References: <85256899.0062DDEE.00@mail.whtz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <85256899.0062DDEE.00@mail.whtz.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message