Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have some files that are like:


I need to rename them to 123.mp3

How can I do this to all the files in a given folder?

I'm on a Mac

share|improve this question

You could use zsh and zmv to easily achieve this with these commands :

% zsh

% autoload -Uz zmv

% cd /path/to/folder

% zmv '(*).(*)?' '$1.$2'

You can, of course, change both patterns.

share|improve this answer

There's always AppleScript, but if you want an app to handle it for you, there's A Better Finder Rename and Name Mangler.

share|improve this answer

Run the AppleScript /Library/Scripts/Finder Scripts/Replace Text in Item Names.scpt and it will prompt you for a replacement and perform it on the items in the frontmost Finder window.

(An easy way to run scripts like this is to use the Script menu; open AppleScript Utility (in /Applications/AppleScript) to enable it.)

share|improve this answer

There are rename actions in Automator. I'd try those. Or use a decent shell.

share|improve this answer

I can recommend NameChanger, it's donateware and pretty simple.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .