Find string in files in Linux

grep -rnw  “string”

r – recursive
n – line number
w – match whole word

Advertisements