You can use this global option:
$ git config --global grep.lineNumber true
Next git you hit “git grep someword” it will show the line number on returned files.