find找出匹配文件复制到其它路径

find /date/ -type f -name "*.txt" -exec cp {} /tmp \;


ind /date/  -type f -name "*.txt" | xargs cp -t /tmp

  

posted @ 2024-02-21 22:19  lucky_tomato  阅读(45)  评论(0)    收藏  举报