find . -path ‘./media’ -prune -o -print
Find all files in this directory (.) -prune (ignore) the proceding path of
‘./media’ Then if no match print (prune or print)
Linux Find Modified with certain time period with excluded directory
find . -path ‘./media’ -prune -o -mtime -30 -print
Find all files in this directory (.)
-prune (ignore) the proceding path of ‘./media’
Modified within the last 30 days print the results.
find . | xargs grep ’string’
Tags: bash scripts