nl
A command that prints a file with numbered lines.
In more detail
By default it numbers only non-empty lines; nl -b a numbers every line. cat -n does a similar job.
Taught in
- Filters: Twenty Small Tools — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep