Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Mar 2000 18:15:57 +0000
From:      Ben Smithurst <ben@scientia.demon.co.uk>
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>
In-Reply-To: <85256899.0062DDEE.00@mail.whtz.com>
References:  <85256899.0062DDEE.00@mail.whtz.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000305181557.I16946>