#monqjfa, my #nfa/#dfa, #regex library for #Java has a grep-like program as an example of the use of the library. This got a new feature resembling grep's -l option to only list file names with matches, not the matches themselves. Example
ooo r='import.*map' names=only src
Yes, the program is called "ooo" 🙂 Why? ... Why not?
The names=only is the new feature. As soon as a match is found, the file name is printed and the program moves on to the next file.