1NL(1)                            User Commands                           NL(1)
2
3
4

NAME

6       nl - number lines of files
7

SYNOPSIS

9       nl [OPTION]... [FILE]...
10

DESCRIPTION

12       Write  each  FILE to standard output, with line numbers added.  With no
13       FILE, or when FILE is -, read standard input.
14
15       Mandatory arguments to long options are  mandatory  for  short  options
16       too.
17
18       -b, --body-numbering=STYLE
19              use STYLE for numbering body lines
20
21       -d, --section-delimiter=CC
22              use CC for separating logical pages
23
24       -f, --footer-numbering=STYLE
25              use STYLE for numbering footer lines
26
27       -h, --header-numbering=STYLE
28              use STYLE for numbering header lines
29
30       -i, --line-increment=NUMBER
31              line number increment at each line
32
33       -l, --join-blank-lines=NUMBER
34              group of NUMBER empty lines counted as one
35
36       -n, --number-format=FORMAT
37              insert line numbers according to FORMAT
38
39       -p, --no-renumber
40              do not reset line numbers at logical pages
41
42       -s, --number-separator=STRING
43              add STRING after (possible) line number
44
45       -v, --starting-line-number=NUMBER
46              first line number on each logical page
47
48       -w, --number-width=NUMBER
49              use NUMBER columns for line numbers
50
51       --help display this help and exit
52
53       --version
54              output version information and exit
55
56       By default, selects -v1 -i1 -l1 -sTAB -w6 -nrn -hn -bt -fn.  CC are two
57       delimiter characters for separating logical  pages,  a  missing  second
58       character implies :.  Type \\ for \.  STYLE is one of:
59
60       a      number all lines
61
62       t      number only nonempty lines
63
64       n      number no lines
65
66       pBRE   number  only  lines  that  contain a match for the basic regular
67              expression, BRE
68
69       FORMAT is one of:
70
71       ln     left justified, no leading zeros
72
73       rn     right justified, no leading zeros
74
75       rz     right justified, leading zeros
76
77       GNU  coreutils  online  help:  <http://www.gnu.org/software/coreutils/>
78       Report nl translation bugs to <http://translationproject.org/team/>
79

AUTHOR

81       Written by Scott Bartram and David MacKenzie.
82
84       Copyright  ©  2013  Free Software Foundation, Inc.  License GPLv3+: GNU
85       GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
86       This is free software: you are free  to  change  and  redistribute  it.
87       There is NO WARRANTY, to the extent permitted by law.
88

SEE ALSO

90       The  full  documentation  for nl is maintained as a Texinfo manual.  If
91       the info and nl programs are properly installed at your site, the  com‐
92       mand
93
94              info coreutils 'nl invocation'
95
96       should give you access to the complete manual.
97
98
99
100GNU coreutils 8.22               October 2018                            NL(1)
Impressum