Friday, October 16, 2015

[Linux] Search all files containing a given pattern

$ grep -rnw 'directory' -e "pattern"

Within the directory, you can just ignore the 'directory' option.

No comments:

Post a Comment