linux search for regex text inside all files in folder code example Example: find text in folder grep -rnw '/path/to/somewhere/' -e 'pattern'