Dev Finding Things
From Dreamwidth Notes
Grepping through code
In the directory you want to search:
rgrep -i [search term] *
To output the results of that search into a file in your home directory:
rgrep -i [search term] * > ~/filename.txt