Understanding the UNIX command xargs

前端 未结 5 846
[愿得一人]
[愿得一人] 2021-01-31 16:37

I\'m pretty much confused on this. Need some clarifications.

Example 1 :

pgrep string | xargs ps

Example 2 :

5条回答
  •  梦如初夏
    2021-01-31 17:12

    xargs is normally used to group arguments together so that you dont get a "too many arguments " error which occurs when you pass a large number of arguments to a command

提交回复
热议问题