find命令部分用法

1.find命令将查找的内容复制到新的目录中

find ./ -name "source*" -type f -exec cp {} /home/test ;

2.find命令将查找的内容进行统计总数

find /home/wsp_images_test/imgtest/ -name "source*" -type f| wc -l

3.find命令将查找的内容删除

find . -name '*.exe' -type f -print -exec rm -rf {} ;

原文地址:https://www.cnblogs.com/zf-crazy/p/14048558.html