nl
Verified for current stable LTS
Nl Command: Number Body Lines Matching Pattern
Use for number body lines matching pattern with Nl. Exact CLI syntax to number body lines matching pattern using Nl.
When to use this: Use for number body lines matching pattern with Nl.
Command Syntax
nl -b p'FooBar[0-9]' <path/to/file> nl -b p'FooBar[0-9]' <path/to/file> Live Command Builder
Final Command
nl -b p'FooBar[0-9]' <path/to/file> Command Breakdown
-b- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to number body lines matching pattern using Nl.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Nl Command: Number Body Lines Including Blank
nl -b <a|n> <path/to/file> Nl Command: Number Body Lines Matching Regex nl -b p'FooBar[0-9]' <path/to/file> Nl Command: Number Non Blank Lines File nl <path/to/file> Nl Command: Read From Stdin Number Lines <command> | nl Nl Command: Specify Line Numbering Format nl -n <rz|ln|rn>