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: James Youngman
Subject: Re: specify a multiple of m arguments in xargs
Date: Sun, 8 Mar 2020 08:34:16 +0000

You should be able to do this by chaining use of xargs :-

$ seq 1 208  | xargs -n 4 | xargs -d'\n' -n 5 sh -c 'set $@;
my-command $@' ignored

The use of -n in the second xargs invocation is not needed, it's just
there to show more clearly what is happening.



reply via email to

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