1

I have this command to convert all .flac files from a directory to .opus

for flacfile in *.flac ;do opusenc --bitrate 64 "$flacfile" "${flacfile%.flac}.opus" ;done

What command should I use to do the same thing but including sub-folders?

Averroista
  • 13
  • 2

1 Answers1

1

Simply add **/*.flac:

for flacfile in *.flac **/*.flac; do opusenc --bitrate 64 "$flacfile" "${flacfile%.flac}.opus"; done
FliegendeWurst
  • 577
  • 1
  • 6
  • 19