Wednesday, December 22, 2010

/usr/bin/find: Argument list too long error

When /usr/bin/find: Argument list too long error

USE THIS:
find /u01/app/oracle/diag/rdbms/TEST/TEST/trace/ -name '*.trm'  -mtime +30 -exec /bin/rm {} \;

INSTEAD OF THIS!!!
find /u01/app/oracle/diag/rdbms/TEST/TEST/trace/*.trc +30 -exec /bin/rm -rf {} \;

No comments: