To convert a series of .flac files to .mp3 files I attempted to use the following line;
> $ find -name "*.flac" -exec bash -c 'ffmpeg -i "{}" -y -acodec libmp3lame -ab 320k "${0/.flac}.mp3"' {} \; which I expected to find each flac and convert it to a corresponding .mp3 however, it reads the first .flac only and rewrites it to all .mp3 files ie; for flacs (a1 > a9) it reads a .flac and outputs mp3's (a1 > a9) but all mp3's contain the original content of only a1.flac Where have I gone wrong? Cheers, Dom.