nl [options] [file]Arguments explained
- Options adjust output or behavior.
- Arguments name the files, services, hosts, or values the command should work with.
Common examples
nl script.shPrints script.sh with line numbers.
nl -ba notes.txtNumbers blank and nonblank lines.
| Field | Details |
|---|---|
| Command | nl |
| Category | Viewing Content |
| Primary use | Numbers lines of text. |
| Syntax | nl [options] [file] |