Find
To Find and list
find /u01/app/oracle/diag/rdbms/agap/agap/trace/agap*.trc -mtime +8 -exec ls -la {} \;
To find and remove
find /u01/find /u01/app/oracle/diag/rdbms/agap/agap/trace/agap*.trc -mtime +8 -exec rm {} \;
To find, remove and print
find /u01/app/oracle/diag/rdbms/agap/agap/trace/agap*.trc -mtime +7 -exec rm {} \; -print
To find and ignore case
note: It is often useful to ignore the case when searching for file names. To ignore the case, just use the "iname" option instead of the "name" option.
find ./test -iname "*.Php"
./test/subdir/how.php
./test/cool.php
to find permise
find . -type f ! -perm 0777