Finding a substring in files across subdirectories with a single built-in command?
GNU grep allows searching recursively through subdirectories:
grep -r --include='*.h' 'the string' .
grep -r searchpattern /path/to/start/in
Where /path/to/start/in/
can be just ".
" for the current directory.