NL(1)
π NL(1) β the number-lines-of-files manual, bestie edition
okay so this is the manual page for nl, which lives in section 1 (User Commands) of the man pages. she's a coreutils girlie and she's about to number your lines. let's go π
β¨ NAME β¨
nl β number lines of files π’
πΈ SYNOPSIS πΈ
nl [OPTION]... [FILE]...
π¦ DESCRIPTION π¦
Write each FILE to standard output, with line numbers added. that's it, that's the whole gig. she takes your text, she puts numbers next to it, she serves. π
With no FILE, or when FILE is -, read standard input. (yes bestie the classic - means stdin, we love a flexible icon π«Ά)
Mandatory arguments to long options are mandatory for short options too. no cap β if it needs a value, it needs a value.
π the options, one by one
-b,--body-numbering=STYLEβ use STYLE for numbering body lines-d,--section-delimiter=CCβ use CC for logical page delimiters-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-p,--no-renumberβ do not reset line numbers for each section-s,--number-separator=STRINGβ add STRING after (possible) line number-v,--starting-line-number=NUMBERβ first line number for each section-w,--number-width=NUMBERβ use NUMBER columns for line numbers--helpβ display this help and exit--versionβ output version information and exit
π the defaults (aka her factory settings, iconic)
Default options are: -bt -d'\:' -fn -hn -i1 -l1 -n'rn' -s<TAB> -v1 -w6
π about CC (the section delimiter thing)
CC are two delimiter characters used to construct logical page delimiters; a missing second character implies :. As a GNU extension one can specify more than two characters, and also specifying the empty string (-d '') disables section matching. lowkey powerful, ngl π
π§ STYLE is one of:
aβ number all linestβ number only nonempty linesnβ number no linespBREβ number only lines that contain a match for the basic regular expression, BRE
β FORMAT is one of:
lnβ left justified, no leading zerosrnβ right justified, no leading zerosrzβ right justified, leading zeros
π AUTHOR π
Written by Scott Bartram and David MacKenzie. absolute legends, we stan π
π REPORTING BUGS π
- Report bugs to:
bug-coreutils@gnu.org - GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
- General help using GNU software: <https://www.gnu.org/gethelp/>
- Report any translation bugs to <https://translationproject.org/team/>
(if something's broken, tell the devs, don't suffer in silence bestie π)
π₯ SEE ALSO π₯
- Full documentation <https://www.gnu.org/software/coreutils/nl>
- or available locally via:
info '(coreutils) nl invocation'
ngl this page also carries the packaging and license tea: Packaged by Ubuntu (9.10-1ubuntu2), Copyright Β© 2026 Free Software Foundation, Inc., License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. β fr fr, no warranty, read the fine print π
and that's the whole thing!! this page shipped with GNU coreutils 9.10, dated August 2026, and honestly? she ate. go number some lines, main character π β¨π
π¦ where this page comes from
- ubuntu stonking: gnu-coreutils 9.10-1ubuntu2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms