All apps/nl

nl

nl

Number the lines of a file.

Runs as nl|macOS, Linux, Windows

Command form

ai-draft · 1 task · 7 fields

Add line numbers to files or standard input. Header and footer section styles are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui nl
Number linesExample values, fixed in this page — nothing here reaches a terminal
Basic
Files*
file
Body lines to number
astring
Number format
string
Number width
integer
TasksEach one presets the form for one job
Number all lines
filesbody_typeformatwidth
ParametersOnly these flags are editable in the form
Files
path · positional 0 · repeatable
Body lines to number
string
-bat
Number format
string
-nlnrnrz
Number width
integer
-w
Separator
string
-s
Start number
integer
-v
Increment
integer
-i
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed nl against its version. A form that does not match your version is not offered.