find / -ctime +365 ! -name "*.bat" -exce rm -rf {} \; 转载于:https://www.cnblogs.com/guxiaobei/p/9262942.html