Linux - Change file name on multiple files

Method 1:
for oldname in *.mp3; do mv $oldname `basename $oldname .mp3`.mp4; done

Method 2:
rename 's/\.mp3$//' *.mp4

Comments