grep search in each every file for a string code example Example: find text pattern in file linux grep -rnw '/path/to/somewhere/' -e 'pattern'