知识点: -I
比如目录下有二个文件
1.txt
2.txt
find -type f -name "*.txt" -print | xargs -I {} ls {}
-I是一个一个取出来, 再给到ls命令作为参数, 最后执行
转换成二次:
ls 1.txt
ls 2.txt
比如目录下有二个文件
1.txt
2.txt
find -type f -name "*.txt" -print | xargs -I {} ls {}
-I是一个一个取出来, 再给到ls命令作为参数, 最后执行
转换成二次:
ls 1.txt
ls 2.txt