1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 19:19:44 +01:00
tldr/pages/linux/nl.md
2017-04-15 11:37:03 +01:00

305 B

nl

A utility for numbering lines, either from a file, or from standard input.

  • Number lines in a file:

nl {{file}}

  • Number only the lines with printable text:

nl -t {{file}}

  • Number only the body lines that match a basic regular expression (BRE) pattern:

nl -b p'FooBar[0-9]' {{file}}