查找N天之前建立的文件并list
find $ARCHDIR -type f -name " file name "-mtime +$DAYS -exec ls -l {} \;
查找N天之前建立的文件并delete
find $ARCHDIR -type f -name " file name " -mtime +$DAYS -exec rm -f {} \;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10359218/viewspace-695727/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10359218/viewspace-695727/