NL(1)
β¨ 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. Thetypevalues are:'a'β all lines't'β only non-empty lines (default)'n'β no numbering'pexpr'β only lines matching pattern specified byexpr'eexpr'β exclude lines matching pattern specified byexpr
-d delimβ characters (max 2) indicating new section (default :'\\:')-f typeβ same as-bbut for footer lines (default :'n')-h typeβ same as-bbut for header lines (default :'n')-i incrβ increment value (default :1)-n formatβ line number format. Theformatvalues 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.
π LICENSE AND COPYRIGHT π
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
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms