Bash shell 保留3天日志脚本

Bash shell源码

1  #!/bin/sh
2  LOG_DIR='/data0/oauth/log/'
3  find ${LOG_DIR} -mtime +3 -name "*.log" -exec rm -rf {} \;

You May Also Like

About the Author: 一块自由的砖

码农一个,一块自由勤恳的砖,哪里需要哪里搬!( ̄▽ ̄)"