Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Aug 2004 11:15:09 -0400
From:      Gerard Samuel <fbsd-questions@trini0.org>
To:        freebsdquestions <freebsd-questions@freebsd.org>
Subject:   Renaming files using find
Message-ID:  <413495FD.10700@trini0.org>

next in thread | raw e-mail | index | archive | help
Im trying to rename a few files with the .dist extension.
Im trying ->
hivemind# find . -name '*.dist' -exec cp {} `basename {} .dist` \;

And Im getting ->
cp: ./html.php.dist and ./html.php.dist are identical (not copied).
cp: ./horde.php.dist and ./horde.php.dist are identical (not copied).
cp: ./motd.php.dist and ./motd.php.dist are identical (not copied).
cp: ./mime_mapping.php.dist and ./mime_mapping.php.dist are identical 
(not copied).
cp: ./prefs.php.dist and ./prefs.php.dist are identical (not copied).
cp: ./registry.php.dist and ./registry.php.dist are identical (not copied).
cp: ./lang.php.dist and ./lang.php.dist are identical (not copied).
cp: ./mime_drivers.php.dist and ./mime_drivers.php.dist are identical 
(not copied).

What is wrong with the command that I issued.
Thanks



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