/usr/bin/find: Argument list too long

[root@server1 ~]# find /opt/grid/product/12.1.0/rdbms/audit/*.aud -mtime +7 -delete

 -bash: /usr/bin/find: Argument list too long

Solution:

[root@server1 ~]$ find /opt/grid/product/12.1.0/rdbms/audit/ -name '*.aud'  -mtime +30 -exec /bin/rm {} \;

 

 

Comments