Is there some mechanism to make find with -exec use multiple jobs?
Lets use this command for example
find ./* -exec flac --best {} \;
Is there some way to set the number of concurrent -exec commands to run easier than something like this solution:
run find ./* and save the results to a file/pipe them for another command to split into 16 parts (or however many threads you want) then run commands on these?
-Pfind ./* -type f -print0|xargs -0 -P 16 -I % opusenc --bitrate 256 % %.opus./*. A dot would be enough, and that would not blow up if you have many names in the current directory. I would also suggest a-nametest to get names you want and not everything (and-type fto avoid runningflac(oropusenc) on directories). If you have one single directory, you shouldn't needfindat all, and if you're usingbashorzsh, you could use**instead offind.