grep search for string in files recursively code example
Example 1: grep all files recursively
grep -r "texthere" .
Example 2: grep line number in linux
$ grep -in null myfile.txt
2:example two null,
4:example four null,
grep -r "texthere" .
$ grep -in null myfile.txt
2:example two null,
4:example four null,