grep line number in linux

Shell
$ grep -in null myfile.txt

2:example two null,
4:example four null,
Source

Also in Shell: