LSN #7 grep to search through directories

This post will be quick, but I still wanted to write this one regarding grep. Most times I see grep being used after a pipe to find or sort output and rarely as a starting command. One of my favorite abilities of grep is that it can recursively search through directories and find the string your looking for within the files. I often use find to search file names, but being able to search file contents would often be easier.

grep -r "pattern" /path/to/directory