#! /bin/sh
path=`pwd`
path=$path/trace
find $path -type f > tmp
filesCount=`ls $path | wc -l`
echo "$path have $filesCount files"
echo "begin remove file,please wait a mo"
while read line
do
rm $line
done<tmp
echo 'ok'
获取路径下的文件列表,并逐行打印删除
最新推荐文章于 2021-02-17 01:16:50 发布