Tuesday, July 11, 2017

How to find all files containing specific text on Linux?

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

where pattern can be defined with exact phrase or wildcards

No comments:

Post a Comment