linux根据时间判断删除多余旧的文件

#!/bin/bash dir='/opt/zhangsan/upload/' file='expe*'        #这里须要匹配的文件名,若是匹配全部,直接填* filenumber=6    #要保留的文件个数 while [ 1 ]; do     count=0;     eval ls -t ${dir}/${file} 2>/dev/null | while read onefil
相关文章
相关标签/搜索