How to list filenames containing a specific string using ack-grep (ag)

UseĀ ag -l to list only filenames that contain the given string.

For example, in order to list filenames containing the stringĀ 403 Forbidden, use

ag -l "403 Forbidden"