Linux find命令与cp命令连用

方法一 find与|xargs是黄金搭档,-t参数指定目标目录,使用管道实现复制 find /date/ -type f -name "*.txt" | xargs cp -t /tmp 方法二 {}大括号里的内容为find命令找到的结果 find /date/ -type f -name "*.t

posted on 2021-09-18 17:57  乘影  阅读(1552)  评论(0编辑  收藏  举报

导航