I use the find command about 20 times a day.  There’s enough other things going on in my mind as is it…. so find helps me.

Get all the backup directories that are over 7 days old:

find . -type d -mtime +7 -print

Get all php files that have the word “donkeybowwow” in them:

find . -type f -name “*.php” -exec grep “donkeybowwow” {} ; -print

And I’m just scratching the surface here…..

 

Advertisements