Find command
===================
find $ARCH -name "*.arc" -mtime +1 -exec ll {} \;
Specify selection of the files based on three Unix timestamps: the last time a files's "access time", "file status" and "modification time".
n is time interval -- an integer with optional sign. It is measured in 24-hour periods (days) or minutes counted from the current moment.
n: If the integer n does not have sign this means exactly n 24-hour periods (days) ago, 0 means today.
+n: if it has plus sing, then it means "more then n 24-hour periods (days) ago", or older then n,
-n: if it has the minus sign, then it means less than n 24-hour periods (days) ago (-n), or younger then n. It's evident that -1, and 0 are the same and both means "today".
How to find a "word" or pattern in all files in a directory & subdirectories
=================================================================================
find . -name "*" -exec grep -l "<pattern>" {} \;
for example I want to search for word belwo
find . -name "*.log" -exec grep -l "bytes exceeds the configured maximum of" {} \;
This command will also say where the entry is there for the pattern
=======================================================================
find . -type f -print | xargs grep "<pattern>"
Find and grep command together
==================================
find . -xdev -mtime -3 -exec ll -ltr {} \; | grep -i "<date>"
find . -xdev -mtime -3 -exec ll -ltr {} \; | grep -i "Oct 23"
Find and AWK command together
================================
find /abprod/appl/XXAB/11.5.0 -type f -mtime -7 -exec ls -ltr {} \; | awk '{ print $6 " " $7 " " $8 " " $9 }'
To find files modified in the last 40mins
==========================================
find . -mmin -40
Find and replace a character in all files under directory
-------------------------------------------------------------------
find ./ -type f -exec sed -i -e 's/apple/orange/g' {} \;
http://www.thegeekstuff.com/2009/06/15-practical-unix-linux-find-command-examples-part-2/
Find a directory
--------------------
find . -type d -name "OracleBIPresentationServicesComponent" -ls