copy Bookmark http://www.51testing.com/?15073423
上一篇 / 下一篇 2015-01-08 13:33:53 / 个人分类:Linux shell
第一个可以实现:-------------------------------------------------#!/bin/bashfind /tmp -mtime +90 -exec rm -rf {} \;exit 0-------------------------------------------------第二个实现:-------------------------------------------------#!/bin/bashto=$(data +%Y%m)ago=$(($to-3))file=$(ls /tmp)for ob in $filedo rm -rf $obdone
收藏 举报
TAG: shell Shell
评分:0
验证
提交评论
ElenaYu