#!/bin/sh
location="./cache/"
while(true)
do
find $location -mmin +59 -regex .*\.html | xargs rm -f
sleep 30s
done
shell 定时删除某个目录指定格式文件(递归)
最新推荐文章于 2024-04-28 20:53:09 发布
#!/bin/sh
location="./cache/"
while(true)
do
find $location -mmin +59 -regex .*\.html | xargs rm -f
sleep 30s
done