man-pages/man1/nl.1.html
2021-03-31 01:06:50 +01:00

139 lines
4.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of NL</TITLE>
</HEAD><BODY>
<H1>NL</H1>
Section: User Commands (1)<BR>Updated: September 2019<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
nl - number lines of files
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>nl</B>
[<I>,OPTION/</I>]... [<I>,FILE/</I>]...
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
Write each FILE to standard output, with line numbers added.
<P>
With no FILE, or when FILE is -, read standard input.
<P>
Mandatory arguments to long options are mandatory for short options too.
<DL COMPACT>
<DT id="1"><B>-b</B>, <B>--body-numbering</B>=<I>,STYLE/</I><DD>
use STYLE for numbering body lines
<DT id="2"><B>-d</B>, <B>--section-delimiter</B>=<I>,CC/</I><DD>
use CC for logical page delimiters
<DT id="3"><B>-f</B>, <B>--footer-numbering</B>=<I>,STYLE/</I><DD>
use STYLE for numbering footer lines
<DT id="4"><B>-h</B>, <B>--header-numbering</B>=<I>,STYLE/</I><DD>
use STYLE for numbering header lines
<DT id="5"><B>-i</B>, <B>--line-increment</B>=<I>,NUMBER/</I><DD>
line number increment at each line
<DT id="6"><B>-l</B>, <B>--join-blank-lines</B>=<I>,NUMBER/</I><DD>
group of NUMBER empty lines counted as one
<DT id="7"><B>-n</B>, <B>--number-format</B>=<I>,FORMAT/</I><DD>
insert line numbers according to FORMAT
<DT id="8"><B>-p</B>, <B>--no-renumber</B><DD>
do not reset line numbers for each section
<DT id="9"><B>-s</B>, <B>--number-separator</B>=<I>,STRING/</I><DD>
add STRING after (possible) line number
<DT id="10"><B>-v</B>, <B>--starting-line-number</B>=<I>,NUMBER/</I><DD>
first line number for each section
<DT id="11"><B>-w</B>, <B>--number-width</B>=<I>,NUMBER/</I><DD>
use NUMBER columns for line numbers
<DT id="12"><B>--help</B><DD>
display this help and exit
<DT id="13"><B>--version</B><DD>
output version information and exit
</DL>
<P>
Default options are: <B>-bt</B> <B>-d</B>'\:' <B>-fn</B> <B>-hn</B> <B>-i1</B> <B>-l1</B> <B>-n</B>'rn' <B>-s</B>&lt;TAB&gt; <B>-v1</B> <B>-w6</B>
<P>
CC are two delimiter characters used to construct logical page delimiters;
a missing second character implies ':'.
<P>
STYLE is one of:
<DL COMPACT>
<DT id="14">a<DD>
number all lines
<DT id="15">t<DD>
number only nonempty lines
<DT id="16">n<DD>
number no lines
<DT id="17">pBRE<DD>
number only lines that contain a match for the basic regular
expression, BRE
</DL>
<P>
FORMAT is one of:
<DL COMPACT>
<DT id="18">ln<DD>
left justified, no leading zeros
<DT id="19">rn<DD>
right justified, no leading zeros
<DT id="20">rz<DD>
right justified, leading zeros
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>AUTHOR</H2>
Written by Scott Bartram and David MacKenzie.
<A NAME="lbAF">&nbsp;</A>
<H2>REPORTING BUGS</H2>
GNU coreutils online help: &lt;<A HREF="https://www.gnu.org/software/coreutils/">https://www.gnu.org/software/coreutils/</A>&gt;
<BR>
Report nl translation bugs to &lt;<A HREF="https://translationproject.org/team/">https://translationproject.org/team/</A>&gt;
<A NAME="lbAG">&nbsp;</A>
<H2>COPYRIGHT</H2>
Copyright &#169; 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &lt;<A HREF="https://gnu.org/licenses/gpl.html">https://gnu.org/licenses/gpl.html</A>&gt;.
<BR>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
<A NAME="lbAH">&nbsp;</A>
<H2>SEE ALSO</H2>
Full documentation at: &lt;<A HREF="https://www.gnu.org/software/coreutils/nl">https://www.gnu.org/software/coreutils/nl</A>&gt;
<BR>
or available locally via: info '(coreutils) nl invocation'
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="21"><A HREF="#lbAB">NAME</A><DD>
<DT id="22"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="23"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="24"><A HREF="#lbAE">AUTHOR</A><DD>
<DT id="25"><A HREF="#lbAF">REPORTING BUGS</A><DD>
<DT id="26"><A HREF="#lbAG">COPYRIGHT</A><DD>
<DT id="27"><A HREF="#lbAH">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:20 GMT, March 31, 2021
</BODY>
</HTML>