News for hackers. Stuff that matters.
Re:Exploratory Data Analysis Using Awk by i15e on Friday October 06, 2023 @04:11PM (#37795680)
Something to watch out for with nl is that by default it doesn't number empty lines. e.g.:

  $ printf 'one\n\nthree\n' | nl
     1  one

     2  three
Set -ba to enable numbering all lines.

For this use case I usually end up running cat -n instead since I find it easier to remember.

There are no comments on this comment yet.