NL(1)                            User Commands
NL(1)



NNAAMMEE
       nl - number lines of files

SSYYNNOOPPSSIISS
       nnll [_O_P_T_I_O_N]... [_F_I_L_E]...

DDEESSCCRRIIPPTTIIOONN
       Write  each  FILE to standard output, with line
       numbers added.  With no FILE, or when FILE is -,
       read standard input.

       Mandatory arguments to long options are  mandatory
       for  short  options too.

       --bb,
       ----bbooddyy--nnuummbbeerriinngg=_S_T_Y_L_E
              use STYLE for numbering body lines

       --dd,
       ----sseeccttiioonn--ddeelliimmiitteerr=_C_C
              use CC for separating logical pages

       --ff,
       ----ffooootteerr--nnuummbbeerriinngg=_S_T_Y_L_E
              use STYLE for numbering footer lines

       --hh,
       ----hheeaaddeerr--nnuummbbeerriinngg=_S_T_Y_L_E
              use STYLE for numbering header lines

       --ii,
       ----ppaaggee--iinnccrreemmeenntt=_N_U_M_B_E_R
              line number increment at each line

       --ll,
       ----jjooiinn--bbllaannkk--lliinneess=_N_U_M_B_E_R
              group of NUMBER empty lines counted as one

       --nn,
       ----nnuummbbeerr--ffoorrmmaatt=_F_O_R_M_A_T
              insert line numbers according to FORMAT

       --pp, ----nnoo--rreennuummbbeerr
              do not reset line numbers at logical pages

       --ss,
       ----nnuummbbeerr--sseeppaarraattoorr=_S_T_R_I_N_G
              add STRING after (possible) line number

       --vv,
       ----ffiirrsstt--ppaaggee=_N_U_M_B_E_R
              first line number on each logical page

       --ww,
       ----nnuummbbeerr--wwiiddtthh=_N_U_M_B_E_R
              use NUMBER columns for line numbers

       ----hheellpp display this help and exit

       ----vveerrssiioonn
              output version information and exit

       By default, selects --vv11 --ii11 --ll11
       --ssTTAABB --ww66 --nnrrnn --hhnn
       --bbtt --ffnn.  CC are two delimiter characters
       for separating logical  pages,  a  missing  second
       character implies :.  Type \\ for \.  STYLE is one of:

       a      number all lines

       t      number only nonempty lines

       n      number no lines

       pBRE   number only lines that contain a match for the
       basic regular

              expression, BRE

       FORMAT is one of:

       ln     left justified, no leading zeros

       rn     right justified, no leading zeros

       rz     right justified, leading zeros

AAUUTTHHOORR
       Written by Scott Bartram and David MacKenzie.

RREEPPOORRTTIINNGG BBUUGGSS
       Report bugs to <bug-coreutils@gnu.org>.

CCOOPPYYRRIIGGHHTT
       Copyright © 2006 Free Software Foundation, Inc.
       This  is  free  software.   You may redistribute
       copies of it under the terms      of      the
       GNU      General       Public       License
       <http://www.gnu.org/licenses/gpl.html>.   There  is
       NO WARRANTY, to the extent permitted by law.

SSEEEE AALLSSOO
       The full documentation for nnll is maintained as a
       Texinfo  manual.   If the  iinnffoo and nnll
       programs are properly installed at your site, the
       com‐ mand

              iinnffoo nnll

       should give you access to the complete manual.



nl 6.7                           December 2006
NL(1)
