[PLUG] Renaming photo files

Felix Lee felix.1 at canids.net
Mon Sep 22 14:25:19 UTC 2003


Rogan Creswick <creswick at cs.orst.edu>:
> Good to know!  Does anyone know of an advantage to the binary rename
> command? I find the reg. exp's to be invaluable for complex renaming..

Perhaps the advantage is you don't need to know perl?

If you want to do more complex renaming than the perl rename
script can handle, I have a perl script
    http://canids.net/felix/cmv
that knows how to do tricks like
    cmv 'tr/xyz/yzx/' x y z
without losing any of the files.  You can also do tricks like
    cmv -d 's(-)(/)g' *
to split files into subdirectories.
--




More information about the PLUG mailing list