Dennis Vshivkov wrote:
>     tr \\n \\0 < movelist | xargs -0 -i rm -f '{}'
> 
> A separate pair of shell and `rm' processes gets spawned per
> individual file to be removed.  The `tr' is redundant, but
> insignificant.

> -               complex_doit("(cd $sourcedir >/dev/null ; tr '\\n' '\\0' < 
> $pwd/debian/movelist | xargs -0  -i rm -f '{}')");
> +               complex_doit("(cd $sourcedir >/dev/null ; < 
> $pwd/debian/movelist xargs -rd'\\n' rm -f)");

This is not valid shell code. -----------------------------^^^

All that is really needed to speed this up is removal of the -i and '{}'
options from xargs.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to