Sure, if you’re on windows you can turn on the ‘search inside File Contents’ option, but it’s slow and annoying. Far better is to get your code on linux and run this:
find ./src -exec grep "Search Term" '{}' \; -print
The second term is the directory to search in. The “Search Term” is what you are hoping to find in one of the files in the search directory. The search term will be matched exactly and files in all sub-folders will be checked. Super handy.
Hi Jeff,
Why do you put the {} in single quotes?
Hi Nathan,
Honestly, I don’t know why it’s done that way, it’s just the command that ended up working for me based on this tutorial (http://content.hccfl.edu/pollock/unix/findcmd.htm)