Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Is it possible to batch change multiple file extensions

Is there a way to batch change file extensions? I have more than 150 files on which I need to change the extension and it's a bit of a pain to do each one separately and then have to confirm it.

Thanks!

iMac, 2.4 GHz, 2 GB RAM, 500 GB HD, Mac OS X (10.5.4), iPhone

Posted on Aug 16, 2008 4:24 PM

Reply
Question marked as Best reply

Posted on Aug 16, 2008 4:30 PM

there are lots of file renamers [listed on macupdate|http://www.macupdate.com/search.php?keywords=rename&starget=google]. any one of them should be able to do that.
9 replies

Aug 16, 2008 5:12 PM in response to The Zach

This is where the terminal can be your friend. Open up terminal and change to the folder in question

To do this, assuming the folder is called 'myfiles' and is on your desktop:
cd ~/Desktop/myfiles

(Or you could type cd then drag the folder to the terminal window to save typing)

Then the command below will rename *.txt to *.rtf (change the two occurrences of 'txt' and the one 'rtf' as appropriate:

for f in *.txt; do base=`basename $f .txt`; mv $f $base.rtf; done

Is it possible to batch change multiple file extensions

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.