#!/bin/bash
#crontab -e 保留3天备份
date=3
path='/data/atlassian/application-data/confluence/backups/'
find $path -mtime +$date -name "backup-*" -exec rm -rf {} \;
cat t.txt | sed '/^$/d' | awk '{print $1}' 去掉取出第一行去掉中间的空行
#!/bin/bash
#crontab -e 保留3天备份
date=3
path='/data/atlassian/application-data/confluence/backups/'
find $path -mtime +$date -name "backup-*" -exec rm -rf {} \;
cat t.txt | sed '/^$/d' | awk '{print $1}' 去掉取出第一行去掉中间的空行
本文标题:bash
本文链接:https://www.haomeiwen.com/subject/nfnslqtx.html
网友评论