这个看看?
https://unix.stackexchange.com/questions/428310/problem-using-xargs-max-args-replace-with-default-delimiter
{quote}
That behaviour (that newline should be the only delimiter with -I) is
documented in the GNU xargs documentation and the POSIX specification (under
XSI, so it's not surprising that OpenBSD doesn't comply there). In any case,
using -n with -I makes little sense as {} is to replace one argument anyway.
{quote}
$ printf "%s\n" a b c d e | xargs -I{} echo begin {} end
begin a end
begin b end
begin c end
begin d end
begin e end
【 在 JulyClyde 的大作中提到: 】
: 例子:
: list="a b c d e"; echo $list |xargs -n1 -I{} echo begin {} end
: 在Mac上执行结果:
: ...................
--
修改:haha103 FROM 182.150.115.*
FROM 182.150.115.*