[ack] Print only the names of matching files

Created on November 30, 2026

You can pass -l to ack to list the files that contain a match. This example searches for report.

ack -l report
ack Shell command