grep search inside text file in folder code example Example: grep search text in folder grep -rnw '/path/to/somewhere/' -e 'pattern'