pretty simple, to add a .mp3 to all files in a directory (e.g. if they originally were on an old mac):
rename 's/(.*)/$1.mp3/' *