情景:需要删除以12开头的、6天前修改的文件夹(文件夹里包含文件)。鼓捣了好一会,开始用find /home/users/niu/test/log/ -name '12*' -type d -mtime +5 -exec rm -f {} \; 会报错:no such file or directory,后来改用以下脚本,不报错。#!/bin/bashfind /home/users/niu/test/log/ -name '12*' -type d -mtime +5 | xargs rm -rf
第一句子网 - 唯美句子、句子迷、好句子大全