nl

Linux · Files · available in the simulator

What it does

Numbers lines of a file.

Options and parameters

  • -ba

    numbers all lines (including empty ones)

  • -bt

    numbers non-empty lines only

Usage examples

  • nl archivo.txt
  • nl -ba archivo.txt
Practise nl

Related commands