How to find/grep files with specific content in Linux?

https://stackoverflow.com/questions/16956810/how-do-i-find-all-files-containing-specific-text-on-linux

grep -rnw '/path/to/somewhere/' -e 'pattern'

if you like to search the current folder and all sub folders run the command like this:

grep -rnw . -e 'pattern'