Renaming Files on Hoary
Stephen R Laniel
steve at laniels.org
Tue Jun 14 21:41:24 UTC 2005
On Tue, Jun 14, 2005 at 05:24:18PM -0400, Stephen R Laniel wrote:
> On Tue, Jun 14, 2005 at 10:09:30PM +0100, Tony Arnold wrote:
> > find . -name '*.JPG' -exec mv {} `cat {} | sed -e 's/\.JPG/.jpg/'` \;
> I think you meant 'echo' where you wrote 'cat' above.
Also, I think that the '-exec' argument to 'find' is a bad
design decision; xargs is less of a hack.
--
Stephen R. Laniel
steve at laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050614/b8d5b0bb/attachment.sig>
More information about the ubuntu-users
mailing list