Search in all text files in Linux

Just use this command line:

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