nl − line numbering filter
nl [−p]
[−b type] [−d delim] [−f type] [−h
type] [−i incr]
[−n format] [−s sep] [−v startnum]
[−w width] [file]
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.
The following options are supported.
−b type
'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 '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)
Please report any bugs or feature requests to "[email protected]", or through the web interface at <https://github.com/briandfoy/PerlPowerTools/issues>.
jul, "[email protected]"
This software is Copyright (c) 2020 by jul.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)