-H forces the printing of the filename (which implies printing of the line number), and grep has -n to print the line numbers only. Do we need an equivalent to grep's -n?
Pick your reaction
I'd quite like this one. Or detault to numbering and switch off with --no-number
The current default confuses me.
+1. This is a really useful feature.
+1 This would be a useful improvement to an already great project.
+1 this would be super useful
+1 currently I tack /dev/null on to the input files to force numbers but that's very inelegant.
You can just use -H on 1 or more files to show the line numbers (with filename).
It would be easier to add -H to your .ackrc file as well.
+1 I would like to have separate option for numbering the lines.
The filename in the workaround (-H, --with-filenames options) could be a nuisance when running some pipeline..