#!/bin/sh for flac in *.flac; do mpeg=`echo "$flac".mp3` flac -d -c "$flac" | lame --cbr -b 256 - "$mpeg" done