[ILUG] Strip first three characters from filename

David Golden david.golden at unison.ie
Sun Aug 10 20:59:44 IST 2008


On Sunday 10 August 2008, Steve McConville wrote:
> For future reference there's a perl program called 'rename' which  -
> depending on distro - you may already have installed.

Several other distros tend to include a different rename command. 
debianoids have the perl regex one, redhatoids a simpler but 
incompatible one that does simple substitution:

rename from to files

changes the first instance of "from" in each filename of files 
in "files" to "to".

Some distros also have an "mmv" command that's different again,
it's in the "mmv" package in debian.




More information about the ILUG mailing list