备忘不解释:删除若干天前的文件 删除bashfind
程序员文章站
2024-03-21 20:29:46
...
备忘不解释
#!/bin/bash
export LANG="en_US.UTF-8"
export SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"
export SYSFONT="latarcyrheb-sun16"
#delete files modified min 20 ago
/usr/bin/find /opt/rsync/liveimg/eden/ -maxdepth 1 -type f -regex '/opt/rsync/liveimg/eden/.*\.jpg' -mmin +20 -delete;