Bash shell 保留3天日志脚本 Posted by 一块自由的砖 2025年1月3日 in Linux Bash shell源码 1 #!/bin/sh 2 LOG_DIR='/data0/oauth/log/' 3 find ${LOG_DIR} -mtime +3 -name "*.log" -exec rm -rf {} \; linux