tange
Re:Awesome but commonly unknown Linux Commands
on Thursday August 11, 2011 @07:30AM (#2872354)
You can emulate it with sem:
find . -exec sem --id my_find -j3 sleep 4\; echo {} \;
See more about sem: http://www.gnu.org/software/parallel/sem.html
Re:GNU Parallel - build and execute command lines from standard input ...
on Monday October 18, 2010 @05:03PM (#1805141)
Please read http://www.gnu.org/software/parallel/man.html#differences_be... before selecting dxargs.
Re:Chmod -x chmod
on Sunday October 10, 2010 @10:33AM (#1777122)
Your use of xargs can lead to nasty surprises because of the separator
problem http://en.wikipedia.org/wiki/Xargs#The_separator_problem
GNU Parallel http://www.gnu.org/software/parallel/ does not have that problem.
Watch the intro video for GNU Parallel: http://www.youtube.com/watch?v=OpaiGYxkSuQ
Re:Batch Processing Millions and Millions of Images
on Sunday July 11, 2010 @06:40AM (#1505315)
Like this (if you have GNU Parallel http://www.gnu.org/software/parallel/ installed) to run on multiple computers:
find images | parallel -j+0 –trc {.}.out -S server1,server2,: “do_stuff {} > {.}.out”
Watch the intro video for GNU Parallel: http://www.youtube.com/watch?v=OpaiGYxkSuQ
Re:The power of find and xargs
on Friday July 09, 2010 @10:36AM (#1500724)
xargs cannot replace {} with a lot of arguments, so if mv did not have --target-directory, then xargs would have to do:
find ... | xargs -0 -i {} mv {} ~/Pictures
which would run one mv per file.GNU Parallel http://www.gnu.org/software/parallel/ allows for replacing {} with multiple arguments. So this would do the right thing:
find ... | parallel -X -0 mv {} ~/Pictures
GNU Parallel is useful for many other applications. Watch the intro video to learn more: http://www.youtube.com/watch?v=OpaiGYxkSuQ