nl

Number lines from a file or from stdin. More information: https://manned.org/nl.

nl {{path/to/file}}

{{command}} | nl

nl {{[-b|--body-numbering]}} {{a|n}} {{path/to/file}}

nl {{[-b|--body-numbering]}} p'FooBar[0-9]' {{path/to/file}}

nl {{[-i|--line-increment]}} {{increment}} {{path/to/file}}

nl {{[-n|--number-format]}} {{rz|ln|rn}}

nl {{[-w|--number-width]}} {{col_width}} {{path/to/file}}

nl {{[-s|--number-separator]}} {{separator}} {{path/to/file}}