memoryboxes blog

Been here so long got to calling it home.

How to Xargs Separate Parameters

| Comments

做过很多遍了,每次还是得现查,记一下:

1
echo "'param 1' 'param 2'" | xargs -n1 | xargs -I@ echo \[@\] \[@\]

output:

1
2
[param 1] [param 1]
[param 2] [param 2]

Comments