xargs
分类
描述
从标准输入构建和执行命令
语法
xargs [选项] [命令]
常用选项
使用示例
- find . -name '*.txt' | xargs rm: 删除所有txt文件
- echo 'file1 file2' | xargs -n 1 cat: 逐个显示文件内容
相关命令