find string in a file in unix code example Example: find string in files linux grep -rnw '/path/to/somewhere/' -e 'pattern'