nl
Verified for current stable LTS
Nl Commands
Nl command syntax with verified terminal examples.
Commands
9 commands for Nl
nl Operations
Nl Command: Number Body Lines Including Blank
nl -b <a|n> <path/to/file> nl Search
Nl Command: Number Body Lines Matching Pattern
nl -b p'FooBar[0-9]' <path/to/file> nl Search
Nl Command: Number Body Lines Matching Regex
nl -b p'FooBar[0-9]' <path/to/file> nl Operations
Nl Command: Number Non Blank Lines File
nl <path/to/file> nl Operations
Nl Command: Read From Stdin Number Lines
<command> | nl nl Operations
Nl Command: Specify Line Numbering Format
nl -n <rz|ln|rn> nl Operations
Nl Command: Specify Line Numbering Width
nl -w <col_width> <path/to/file> nl Operations
Nl Command: Use Specific Increment Line Numbering
nl -i <increment> <path/to/file> nl Operations
Nl Command: Use Specific Separator For Line Numbers
nl -s <separator> <path/to/file> Suggest a Nl Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Nl workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.