terminal.cab

All commands

nl

Topic: Text

Program: nl

Numbers lines.

Package: text-tools

Usage

nl [OPTION]... [FILE]...

Description

Print each FILE with a number in front of its lines. A FILE named -, or no FILE, means the keyboard or pipe.

Options in the simulator

9 more options of the real program, not in the simulator yet
  • -d, --section-delimiter needs a value not in the simulator yet

    On a real system it picks the characters that separate header, body and footer.

  • -f, --footer-numbering needs a value not in the simulator yet

    On a real system it chooses which lines in the header or footer of a page get a number.

  • -h, --header-numbering needs a value not in the simulator yet

    On a real system it chooses which lines in the header or footer of a page get a number.

  • -i, --line-increment needs a value not in the simulator yet

    On a real system nl counts in steps of this size instead of one.

  • -l, --join-blank-lines needs a value not in the simulator yet

    On a real system this many empty lines in a row count as one.

  • -n, --number-format needs a value not in the simulator yet

    On a real system it puts the number on the left, on the right or with leading zeros.

  • -p, --no-renumber not in the simulator yet

    On a real system nl then keeps counting across pages.

  • -v, --starting-line-number needs a value not in the simulator yet

    On a real system counting starts at this number instead of 1.

  • --version not in the simulator yet

    On a real system it prints the version of the program.

Where you learn it

No lesson yet.

All commands