Renaming many files in Mac OS X and batch processing is possible to do in OS X too in various ways just like we do for Linux. In case of Linux, we rename via a rename command, equivalent is there for OS X plus you can use Automator Automation.
Renaming Many Files in Mac OS X With GUI Tool
Name Mangler helps for renaming many Files in Mac OS X with a GUI. But this is a paid software.
Renaming Many Files in Mac OS X With CLI Tools
There are lot of options for renaming many files in Mac OS X from Command Line Interface.
---
Method 1
1 2 3 | for i in *.yourfiles; do mv "$i" "`echo $i | sed 's/old/new/g'`"; done # this is not command but next line as alternate rename 's/old/new/' *.files |
Method 2 – Scripting
1 2 3 4 | #!/usr/bin/env zsh SUBSEXPR=$1 shift for i in $@; do mv $i `echo "$i" | sed $SUBSEXPR`; done |
Method 3 – HomeBrew
Install rename with the exact usages like Linux if you are using HomeBrew Package Manager :
1 | brew install rename |
Method 4 – MacPorts
Install renameutils with almost the same usages like Linux if you are using MacPorts Package Manager :
1 | brew install rename |
Method 5 – ZSH
Switch to ZSH by typing zsh if your shell is different. You can use zmv :
1 2 | autoload zmv zmv '(*).htm' '$1.html' |