linux find text in all files with file name and line code example Example: find text in any file linux grep -rnw '/path/to/somewhere/' -e 'pattern'