recursive grep code example
Example 1: grep all files recursively
grep -r "texthere" .
Example 2: recursive grep recursion depth
find . -type f -maxdepth 2 -exec grep -l 'pattern' {} \;
grep -r "texthere" .
find . -type f -maxdepth 2 -exec grep -l 'pattern' {} \;