1.find命令 参阅 http://linux.chinaunix.net/techdoc/system/2008/07/25/1020339.shtml
-mtime +30 (+表示n天之前 -表示n天之内)
-newer file1 !file2 查找比file1新,比file2旧的文档
-exec:对匹配的文档执行所给的shell命令。形式为:command { } \;注意{ }和\;之间的空格
eg:find $bakdir -name "*.tar.gz" -type f -mtime +30 -exec rm {} \;>/dev/null 2>&1