我不是说非要用printf来怎么样,我是说这个link里面说GNU xargs/POSIX的文档说明了这个问题。。。(是一个已知问题,甚至是一个feature,不是问题)
-I replstr
[XSI] [Option Start] Insert mode: utility is executed for each logical line
from standard input. Arguments in the standard input shall be separated only
by unescaped <newline> characters, not by <blank> characters. Any unquoted
unescaped <blank> characters at the beginning of each line shall be ignored.
The resulting argument shall be inserted in arguments in place of each
occurrence of replstr. At least five arguments in arguments can each contain
one or more instances of replstr. Each of these constructed arguments cannot
grow larger than an implementation-defined limit greater than or equal to 255
bytes. Option -x shall be forced on. [Option End]
【 在 JulyClyde 的大作中提到: 】
: xargs的stdin不太好控制
: 我这里其实是echo了一个array出来,就是用空格的
: 改printf不太方便吧
: ...................
--
修改:haha103 FROM 182.150.115.*
FROM 182.150.115.*