摘要: file_dir=`find 目录 -mindepth 1 -maxdepth 5 - type d`for dir in $file_dirdo file_name=`basename $dir` if [ $file_name != "目标文件名" ];then rm -rf $dir if [ $? != 0 ];then echo "未删除成功!" ... 阅读全文
posted @ 2019-07-24 16:49 lililili—— 阅读(626) 评论(0) 推荐(0)