#!/bin/bash
find /opt/kettleLogs -mtime +10 -type f -name "JOB_H-*.log" -exec rm -rf {} \;
find /opt/kettleLogs -mtime +30 -type f -name "JOB_D-*.log" -exec rm -rf {} \;
#!/bin/bash
find /opt/kettleLogs -mtime +10 -type f -name "JOB_H-*.log" -exec rm -rf {} \;
find /opt/kettleLogs -mtime +30 -type f -name "JOB_D-*.log" -exec rm -rf {} \;
本文标题:Linux下删除n天前的文件2019-01-16
本文链接:https://www.haomeiwen.com/subject/vydmdqtx.html
网友评论