原文:
xargs reads items from the standard input, delimited by blanks (which can be protected with double or single quotes or a backslash) or newlines
测试:
[root@localhost ~]# cat xxxx
1 2 3 4 5
6 7 8 9
10 11
[root@localhost ~]# cat xxxx | xargs
1 2 3 4 5 6 7 8 9 10 11
原来单空格、多空格、 Tab 都会被作为分隔符进行分割,但括号中的那句"which can be protected with double or single quotes or a backslash"是什么意思腻?可否指点一下下?
xargs reads items from the standard input, delimited by blanks (which can be protected with double or single quotes or a backslash) or newlines
测试:
[root@localhost ~]# cat xxxx
1 2 3 4 5
6 7 8 9
10 11
[root@localhost ~]# cat xxxx | xargs
1 2 3 4 5 6 7 8 9 10 11
原来单空格、多空格、 Tab 都会被作为分隔符进行分割,但括号中的那句"which can be protected with double or single quotes or a backslash"是什么意思腻?可否指点一下下?