#! /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'
获取路径下的文件列表,并逐行打印删除
最新推荐文章于 2025-04-26 15:07:38 发布