how to search for text in all files directory code example Example: find text in folder grep -rnw '/path/to/somewhere/' -e 'pattern'