Change the extension for multiple files

MP3 to mp3 ; jpg to JPG

for f in *.MP3; do mv “$f” “`basename “$f” .MP3`.mp3″; done;
or
for f in *.jpg;
do
cp “$f” “`basename “$f” .jpg`.JPG”;

 

This entry was posted in Linux and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *