solution1:
[root@rac01 adump]# find /u01/app/oracle/admin/**/adump/ -mtime +1 -name "*aud"
[root@rac01 adump]# find /u01/app/oracle/admin/**/adump/ -mtime +1 -name "*aud"| xargs -n 10 rm -fr
solution2:
find . -type f -delete
find . -type d -print -delete
参考: https://www.stevekamerman.com/2008/03/deleting-tons-of-files-in-linux-argument-list-too-long/
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26224914/viewspace-2894406/ ,如需转载,请注明出处,否则将追究法律责任。