Re: specify a multiple of m arguments in xargs

2020-03-06 Thread Peng Yu
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 100 | xargs -n $(( 5 * 2000 )) printf '%s\t%s\t%s\t%s\t%s\n' > /tmp/1.txt > $ < /tmp/1.txt awk -e '!($1 &&

Re: specify a multiple of m arguments in xargs

2020-03-06 Thread Peng Yu
No. I have a program that expects m*n arguments instead of just m (n is an interger). Using `xargs -n m` would make calling the program too many times. On 2/21/20, Bernhard Voelker wrote: > On 2020-02-20 20:46, Peng Yu wrote: >> Hi, >> >> xargs by default does not put a multiple of m arguments (m