nl
A utility for numbering lines, either from a file, or from standard input.
- Number non-blank lines in a file:
- Read from standard output:
- Number only the lines with printable text:
- Number all lines including blank lines:
- Number only the body lines that match a basic regular expression (BRE) pattern:
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).