删除linux上7天前后缀名.sql的文件
#!/bin/bash
#delete the file of 7 days ago
find /data/mysqlbackup/ -mtime +7 -name "*.sql" -exec rm -f {} \;
天天向上,空杯心态。
#!/bin/bash
#delete the file of 7 days ago
find /data/mysqlbackup/ -mtime +7 -name "*.sql" -exec rm -f {} \;