for file in *.wav; do ffmpeg -i "$file" -c:a libmp3lame "${file%.wav}.mp3" done