Stan Marsh <[email protected]> writes: > I use 'nl' a lot for adding line numbers to the output of other commands. > > The one annoying thing is that blank lines in the input are output without > line numbers. > > I would like to see a command line option to over-ride this and have all lines > numbered.
I think the behavior you want is already implemented. See the example below:
$ nl -ba example
1
2 line before and after are empty
3
Collin
