How do I grep (i.e. search for a string) recursively through subdirectories on UNIX?

   find . | xargs grep some_pattern
This searches through all files starting from the current directory down. Note that this includes non-text files.

   find . -name "*.txt" | xargs grep some_pattern
This will restrict your search to certain file names or file types.