How to search all files containing a specific string on Linux and Windows? On Linux grep -rnw ‘directory’ -e “pattern” grep –include=\*.{txt,log} -rnw ‘directory’ -e “pattern” This will only search for files with .txt or .log extension. grep –exclude=*.txt -rnw […] ↓ Read the rest of this entry…