[arch-general] renaming files

Corrado Primier ilbardo at gmail.com
Fri Mar 2 12:36:56 EST 2012


Il 02 marzo 2012 00:13, pete <p.nikolic1 at btinternet.com> ha scritto:
> I have some 350 picture files  with names  along the lines of
> "IMG_7127 EOS-1D Mark III copy.jpg"    i would like to rename them all
> to more like "IMG_7127.jpg"  i have tried a few times tonight and cant
> get my head around it anyone got a script that can do it

There have been lots of good suggestion. I put on the plate "detox":
https://aur.archlinux.org/packages.php?ID=7130

Its purpose is eliminating from filenames charachters that make them
difficult to work with, so it's also good for files *beginning* with a
space, esoteric utf8 characters, escape codes, parentheses and
whatever. It's kind of overkill for this, but it deserves to be
mentioned :-)

C


More information about the arch-general mailing list