ベストアンサー1
標準オプションgrep -l
(小文字の L) を使用すると、これを実行できます。
からUnix標準:
-l
(The letter ell.) Write only the names of files containing selected
lines to standard output. Pathnames are written once per file searched.
If the standard input is searched, a pathname of (standard input) will
be written, in the POSIX locale. In other locales, standard input may be
replaced by something more appropriate in those locales.
-H
この場合も必要ありません。