grep text in current directory code example
Example 1: grep search text in folder
grep -rnw '/path/to/somewhere/' -e 'pattern'
Example 2: grep folder for text
grep -rl "string" /path
grep -rnw '/path/to/somewhere/' -e 'pattern'
grep -rl "string" /path