community man page
nl
Number lines from a file or from `stdin`.
Examples
Number non-blank lines in a file GNU
Read from `stdin` GNU
Number all body lines including blank lines or do not number body lines GNU
Number only the body lines that match a basic `regex` (BRE) pattern GNU
Use a specific increment for line numbering GNU
Specify the line numbering format to right or left justified, keeping leading zeros or not GNU
Specify the line numbering's width (6 by default) GNU
Use a specific string to separate the line numbers from the lines (`TAB` by default) GNU
Number non-blank lines in a file
Read from `stdin`
Number all body lines including blank lines or do not number body lines
Number only the body lines that match a basic `regex` (BRE) pattern
Use a specific increment for line numbering
Specify the line numbering format to right or left justified, keeping leading zeros or not
Specify the line numbering's width (6 by default)
Use a specific string to separate the line numbers from the lines (`TAB` by default)