How to find all files containing specific text

If you looking for some text in files in some directory, this command should do the trick

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

Leave a Reply