How to find a word (or string) inside a folder?

grep -nr yourString /directory

result:
./fileA:10:. yourString
./fileB:11:. yourString
./fileC:13:. yourString

Leave a comment