Last Updated: February 25, 2016
·
517
· efrane

Encode wav to mp3 with lame including fail save for filenames containing spaces

find *.wav -exec sh -c 'cat "$0" | lame -V2 - > `basename "$0" .wav`.mp3; rm "$0"' {} \;

note: the original wav version will be deleted.