xargs理解和使用技巧

xargs:将管道的输出作为后面命令的参数

如果不加xargs将管道的输出作为后面命令的输入

什么是参数什么是输入

cat –help为参数

cat 回车 –help为输入

两种情况下使用xargs

  1. 后面的命令不支持接受管道的输出
  2. 需要将管道的输出作为后面命令的输入

猜你喜欢

转载自blog.csdn.net/qq_28437139/article/details/84673103