Ever be SSH'd into a server and need to track down an instance of a word that's causing an error, but don't know how to search for it? Well, let's fix that!
While this app has been around for years and years, these little snippets tend to escape me when I need them, hence why I write these articles.
grep -rn '/path/to/somewhere/' -e "pattern"
To match "full words" in the search, add a w
to the switches.
grep -rnw '/path/to/somewhere/' -e "pattern"
GREP has soooo many more uses than just this however, so please click on to the following site which will give you all of the details, with examples!