Print file name and line number for each match

bzgrep

bzgrep --with-filename --line-number "{{search_pattern}}" {{path/to/file}}

click the source code to copy install bzgrep on any operating system with command-not-found.com