Subject: Is there a way to show file name once just before all the matches in the file?

From: Peng Yu <[email-masked]>
Date: Fri, 29 Mar 2019 15:47:41 -0500

Hi,

By default, filenames are shown at the same lines of the matches (when
there are multiple files). But I'd like a filename only shown once
before all the matches in the given file. Is there an option to do so
with grep? Thanks.

-- 
Regards,
Peng