Convert wav to mp3 with Linux

By , March 28, 2010 9:40 pm

So I’m converting my wav recordings of last night’s gig to mp3. Here’s a simple bash command line to convert all wav files in a the current directory to 192k MP3 files. The power of the command line on Linux and Unix-like systems is phenomenal. GUI’s are great but some things are so much quicker and easier on the command line.

 for f in *.wav
> do
> new=`echo $f | sed s/wav/mp3/`
> lame -b 192 "$f"  MP3/"$f"
> done

Converting wav to mp3

Terminal showing wav to mp3 conversion


Leave a Reply

Panorama Theme by Themocracy

Switch to our mobile site