🧀 Learn Linux

Advanced·Reading and processing text

nl:Number lines of text

Put in free practice

Syntax

nl [-ba] [file…]

Options

-ba
include blank lines

Examples

nl -ba README.txt

Usage and sandbox support

Only non-blank lines are numbered by default; the teaching subset does not support page breaks.

Hands-on exercises

Full documentation ↗

Related commands