I came across this neat script somewhere on the internet while trying to batch convert a folder full of FLAC files to mp3 files. Hopefully it will help somebody else:
for file in *.flac; do flac -cd “$file” | lame -b 320 -h – “${file%.flac}.mp3”; done
Work’s like shit…