Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Install the Linux rename utility' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Install the Linux rename utility
Authored by: wgscott on Jul 12, '05 01:29:31PM

Another option, one that comes with OS X, is to use the z-shell:

1. Fire up the zshell by typing zsh

2. Define this alias:

mmv='noglob zmv -W'

3. Issue the command:

autoload -U zmv


(You can put the commands for 2 and 3 into your .zshrc file).


Then you can issue the command


mmv photo_*.tiff photo_*.tif

and it will change all files of the form

photo_anything.tiff to the form photo_anything.tif

The nice thing is you don't have to install anything. You can call it rename instead of mmv, or whatever else suits you.


zsh has many more really nice features like this.



[ Reply to This | # ]