grep command to find a string in a file code example
Example 1: linux search for line in file
grep -R "keyword" /directory/
Example 2: grep line number in linux
$ grep -in null myfile.txt
2:example two null,
4:example four null,
grep -R "keyword" /directory/
$ grep -in null myfile.txt
2:example two null,
4:example four null,