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

link|improve this question

48% accept rate
feedback

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.

link|improve this answer
feedback

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

link|improve this answer
feedback

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.)

link|improve this answer
feedback

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

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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