On Sat, Nov 8, 2008 at 6:05 PM, Jim Meyering <[EMAIL PROTECTED]> wrote: > How about parallelizing it via xargs, e.g., > > $ echo a b c d e f g h | xargs -t -n4 --no-run-if-empty \ > --max-procs=2 -- cp --target-directory=dest > cp --target-directory=dest a b c d > cp --target-directory=dest e f g h
For tools lacking a --target-directory option there is this shell trick: $ echo a b c d e f g h | xargs -n4 --no-run-if-empty --max-procs=2 -- sh -c 'prog "$@" destination' prog James. _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
