Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have some files that are like:

123.mp3?

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
add comment

5 Answers

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
add comment

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
add comment

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
add comment

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

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.