find string in all files in current directory code example Example: find text in any file linux grep -rnw '/path/to/somewhere/' -e 'pattern'