centos7 下对文件夹或文件的批量操作处理脚本
#te2.txt 为要删除的文件目录或文件清单
cat /test/te2.txt | while read line
do
echo "$line&准备删除..."
#mv /test/2/$line /test/1/ #移动
rm -rf /test/2/$line #删除
echo "$line & 已经删除"
done
centos7 下对文件夹或文件的批量操作处理脚本
#te2.txt 为要删除的文件目录或文件清单
cat /test/te2.txt | while read line
do
echo "$line&准备删除..."
#mv /test/2/$line /test/1/ #移动
rm -rf /test/2/$line #删除
echo "$line & 已经删除"
done