Comments on: Run a command on all files in a hierarchy https://backreference.org/2010/07/10/run-a-command-on-all-files-in-a-hierarchy/ Proudly uncool and out of fashion Sun, 11 Jul 2010 06:23:51 +0000 hourly 1 https://wordpress.org/?v=5.8.2 By: Ole Tange https://backreference.org/2010/07/10/run-a-command-on-all-files-in-a-hierarchy/#comment-785 Sun, 11 Jul 2010 06:23:51 +0000 http://backreference.org/?p=1380#comment-785 Sometimes the command you want to run is compute intensive. If you have access to several computer GNU Parallel http://www.gnu.org/software/parallel/ makes it possible to have those computers help do the computation. E.g. convert all .wav to .mp3 using local computer and computer1+2 running one job per CPU-core:

find . -type f -name '*.wav' | parallel -j+0 --trc {.}.mp3 -S :,computer1,computer2 "lame {} -o {.}.mp3"

To learn more watch the intro video for GNU Parallel: http://www.youtube.com/watch?v=OpaiGYxkSuQ

]]>