NL(1)

πŸ“¦ version 1.053, in alpine 3.24

✨ NL(1) ✨ β€” line numbering filter πŸ’… from User Contributed Perl Documentation

🌸 NAME 🌸

nl - line numbering filter πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

okay so here's the exact shape, bestie:

nl [-p] [-b type] [-d delim] [-f type] [-h type] [-i incr]
   [-n format] [-s sep] [-v startnum] [-w width] [file]

πŸ’– DESCRIPTION πŸ’–

nl prints its input file to standard output, with line numbers added. If file is a dash "-" or if no file is given as argument, nl reads from standard input. that's the whole plot 😭✨

✨ OPTIONS ✨

The following options are supported. slay β€” here's every single one:

  • -b type β€” sets which lines get numbered. The type values are:
    • 'a' β€” all lines
    • 't' β€” only non-empty lines (default)
    • 'n' β€” no numbering
    • 'pexpr' β€” only lines matching pattern specified by expr
    • 'eexpr' β€” exclude lines matching pattern specified by expr
  • -d delim β€” characters (max 2) indicating new section (default : '\\:')
  • -f type β€” same as -b but for footer lines (default : 'n')
  • -h type β€” same as -b but for header lines (default : 'n')
  • -i incr β€” increment value (default : 1)
  • -n format β€” line number format. The format values are:
    • 'ln' β€” left justified
    • 'rn' β€” right justified without leading zeros (default)
    • 'rz' β€” right justified with leading zeros
  • -p β€” single page (don't restart numbering at pages delimiters)
  • -s sep β€” characters between number and text line (default : TAB)
  • -v startnum β€” initial value to number pages (default : 1)
  • -w width β€” line number width (default : 6)

πŸ› BUGS πŸ›

Please report any bugs or feature requests to kaldor@cpan.org, or through the web interface at <https://github.com/briandfoy/PerlPowerTools/issues>. do it, bestie πŸ’–

πŸ‘‘ AUTHOR πŸ‘‘

jul, kaldor@cpan.org β€” iconic.

This software is Copyright (c) 2020 by jul. copyright moment πŸŽ€

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)

mwah πŸ’‹ β€” source/version perl v5.42.2, date 2026-02-15, manual NL(1). That's the whole page, bestie β€” bye! 🫢

πŸ“¦ where this page comes from