摘要: 001、 -i [root@PC1 test]# ls [root@PC1 test]# touch a.txt a.csv [root@PC1 test]# ls a.csv a.txt [root@PC1 test]# find ./ -name "*.txt" | xargs -i cp {} 阅读全文
posted @ 2023-05-08 21:56 小鲨鱼2018 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 001、不使用 -i选项 [root@PC1 test]# ls abva abvb abvc abvd dir1 dir2 dir3 dir4 dir5 [root@PC1 test]# ls | xargs mv {} {}.bak ## 不使用 -i选项 mv: cannot stat ‘{} 阅读全文
posted @ 2023-05-08 11:37 小鲨鱼2018 阅读(880) 评论(0) 推荐(0) 编辑