Linux下删除当前目录及子目录下的所有.txt文件
find 目录 -name '*.txt' -type f -print -exec rm -rf {} \; 示例 find /home/tech/data_log -name '*.txt' -type f -print -exec rm -rf {} \;
find 目录 -name '*.txt' -type f -print -exec rm -rf {} \; 示例 find /home/tech/data_log -name '*.txt' -type f -print -exec rm -rf {} \;