NL(1)

πŸ“¦ version 0.12.0, in arch rolling

πŸ¦‹ NL(1) β€” Number Lines of Files πŸ¦‹

okay bestie, welcome to the General Commands Manual entry for NL(1) β€” aka the nl command. She is literally here to number lines of files, and she is serving main character energy while doing it. πŸ’…βœ¨


πŸŽ€ NAME πŸŽ€

nl β€” Number lines of files. That’s it, that’s the whole assignment, no cap. πŸ‘‘

✨ SYNOPSIS ✨

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

πŸ’– DESCRIPTION πŸ’–

Number lines of files. Bestie, she numbers lines of files β€” that’s the vibe check. 🫢

🌸 OPTIONS 🌸

  • --help β€” Print help information.
  • -b, --body-numbering <STYLE> β€” use STYLE for numbering body lines.
  • -d, --section-delimiter <CC> β€” use CC for separating logical pages.
  • -f, --footer-numbering <STYLE> β€” use STYLE for numbering footer lines.
  • -h, --header-numbering <STYLE> β€” use STYLE for numbering header lines.
  • -i, --line-increment <NUMBER> β€” line number increment at each line.
  • -l, --join-blank-lines <NUMBER> β€” group of NUMBER empty lines counted as one.
  • -n, --number-format <FORMAT> β€” insert line numbers according to FORMAT. Possible values:
    • ln
    • rn
    • rz
  • -p, --no-renumber β€” do not reset line numbers at logical pages.
  • -s, --number-separator <STRING> β€” add STRING after (possible) line number.
  • -v, --starting-line-number <NUMBER> β€” first line number on each logical page.
  • -w, --number-width <NUMBER> β€” use NUMBER columns for line numbers.
  • -V, --version β€” Print version.

πŸ”₯ EXTRA πŸ”₯

STYLE is one of:

  • a β€” number all lines
  • t β€” number only nonempty lines
  • n β€” number no lines
  • pBRE β€” number only lines that contain a match for the basic regular expression, BRE

FORMAT is one of:

  • ln β€” left justified, no leading zeros
  • rn β€” right justified, no leading zeros
  • rz β€” right justified, leading zeros

πŸ‘‘ VERSION πŸ‘‘

v(uutils coreutils) 0.12.0

🫢 That’s the nl(1) tea, bestie β€” source/version v(uutils coreutils) 0.12.0, date 2026-09-17. Mwah πŸ’‹
πŸ“¦ where this page comes from