I'm using ack to search for a string. When I run it without a file argument, I get line numbers:
$> ack function
themes/README.txt
7:Drupal's sub-theme functionality to ensure easy maintenance and upgrades.
sites/default/default.services.yml
48: # - The dump() function can be used in Twig templates to output information
...
But when I try to specify a file, I don't get line numbers.
$> ack function themes/README.txt
Drupal's sub-theme functionality to ensure easy maintenance and upgrades.
I've done some googling for a switch, but found no results. How do I get ack to show me line numbers on results from a single file?