Sep
17
2008
Mac and Linux Tip: Bulk Rename File Extensions With Terminal and/or Shell
Posted by Erik in OpenSource, Software, TechHow To: Bulk Rename File Extensions With Terminal/Shell
Lets say you have a bunch of .jpg files that you know are actually .rar files.
What would be the simplest way to rename them all?
First you’d navigate to the directory that contains the .jpg files with the “cd” command
For brevity lets assume the only .jpg files in this directory are .jpg files that you want to change
All you have to do is run this command
mv *.jpg *.rar
And all the .jpg files will have been renamed to .rar
If you want to learn more about the “mv” command just type in
man mv
Related posts:
- Mac Tip: Change Screen Capture Format With Terminal
- Mac Tip: Add The Date To The OSX Menu Bar Without Installing Additional Software
- Locknote: Text File Encryption
Entries (RSS)