search directory for text in bash with find code example Example: find text in folder grep -rnw '/path/to/somewhere/' -e 'pattern'