Recursive Search

I usually use Windows Explorer to find something recursively within a folder hierarchy… but sometimes it doesn’t work based on the file types. When that happens, I fall back to this find + grep combination (available with cygwin utils):

find . -type f -exec grep needle {} \; -print

It looks for the word “needle” in any file under the current directory.

The “-type f” option says, only find files.  The “{}” is replaced with the filename (so you can do “grep -i -XYZ needle {}” if you needed to…