This commit is contained in:
xyj 2023-12-18 09:36:37 +08:00
parent a836b155f3
commit 121861b4ad
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
# 设置文件保留时间为2天
DAYS=2
DAYS=1 # 1代表大于1天2
# 使用find命令查找所有符合条件的文件
find /home/pi/mp4 -type f -mtime +$DAYS -exec rm -f {} \;