bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: specify a multiple of m arguments in xargs


From: Peng Yu
Subject: Re: specify a multiple of m arguments in xargs
Date: Fri, 6 Mar 2020 22:22:45 -0600

Instead of manually specify -n that is a multiple of m which could
overflow, maybe xargs should have an additional argument to allow -n
be the maximum allowable multiple of m?

>   $ seq 1000000 | xargs -n $(( 5 * 2000 )) printf '%s\t%s\t%s\t%s\t%s\n'
> /tmp/1.txt
>   $ < /tmp/1.txt awk -e '!($1 && $2 && $3 && $4 && $5)'  | wc -l

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]