News for hackers. Stuff that matters.
Re:The power of find and xargs by tange 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

There are no comments on this comment yet.