I need to convert a bunch of flac files to ogg recursivly.

find . -name \*.flac | while read bach ; do ffmpeg -i "${bach}" (options for ffmpeg) "${bach/.flac/.ogg}" ; done

would work if there were no spaces in file names/directory names, but there are.
Any suggestions?

#shell #zsh #linux

1
10