ack is a command-line utility written in Perl for searching strings inside files. By default when you search, it shows you the file name along with the matching content of the file. Sometimes you may only want to list file names that match your search. This can be done with -l option
ack -l "search string here"
Example
See ack