The grep (Global Regular Expression Print) command can be used to concisely search files or directories for lines matching a specified pattern. code example
Example: grep line number in linux
$ grep -in null myfile.txt
2:example two null,
4:example four null,