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