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, --page-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, --first-page=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

AUTHOR

78       Written by Scott Bartram and David MacKenzie.
79

REPORTING BUGS

81       Report bugs to <bug-coreutils@gnu.org>.
82
84       Copyright © 2007 Free Software Foundation, Inc.
85       This is free software.  You may redistribute copies  of  it  under  the
86       terms       of       the      GNU      General      Public      License
87       <http://www.gnu.org/licenses/gpl.html>.  There is NO WARRANTY,  to  the
88       extent permitted by law.
89

SEE ALSO

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