version 2, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
NL |
|
|
2 |
!!!NL |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
AUTHOR |
|
|
7 |
REPORTING BUGS |
|
|
8 |
COPYRIGHT |
|
|
9 |
SEE ALSO |
|
|
10 |
---- |
|
|
11 |
!!NAME |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
nl - number lines of files |
|
|
15 |
!!SYNOPSIS |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
__nl__ [[''OPTION'']... [[''FILE'']... |
|
|
19 |
!!DESCRIPTION |
|
|
20 |
|
|
|
21 |
|
|
|
22 |
Write each FILE to standard output, with line numbers added. |
|
|
23 |
With no FILE, or when FILE is -, read standard |
|
|
24 |
input. |
|
|
25 |
|
|
|
26 |
|
|
|
27 |
__-b__, __--body-numbering__=''STYLE'' |
|
|
28 |
|
|
|
29 |
|
|
|
30 |
use STYLE for numbering body lines |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
__-d__, __--section-delimiter__=''CC'' |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
use CC for separating logical pages |
|
|
37 |
|
|
|
38 |
|
|
|
39 |
__-f__, |
|
|
40 |
__--footer-numbering__=''STYLE'' |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
use STYLE for numbering footer lines |
|
|
44 |
|
|
|
45 |
|
|
|
46 |
__-h__, |
|
|
47 |
__--header-numbering__=''STYLE'' |
|
|
48 |
|
|
|
49 |
|
|
|
50 |
use STYLE for numbering header lines |
|
|
51 |
|
|
|
52 |
|
|
|
53 |
__-i__, |
|
|
54 |
__--page-increment__=''NUMBER'' |
|
|
55 |
|
|
|
56 |
|
|
|
57 |
line number increment at each line |
|
|
58 |
|
|
|
59 |
|
|
|
60 |
__-l__, |
|
|
61 |
__--join-blank-lines__=''NUMBER'' |
|
|
62 |
|
|
|
63 |
|
|
|
64 |
group of NUMBER empty lines counted as one |
|
|
65 |
|
|
|
66 |
|
|
|
67 |
__-n__, __--number-format__=''FORMAT'' |
|
|
68 |
|
|
|
69 |
|
|
|
70 |
insert line numbers according to FORMAT |
|
|
71 |
|
|
|
72 |
|
|
|
73 |
__-p__, __--no-renumber__ |
|
|
74 |
|
|
|
75 |
|
|
|
76 |
do not reset line numbers at logical pages |
|
|
77 |
|
|
|
78 |
|
|
|
79 |
__-s__, |
|
|
80 |
__--number-separator__=''STRING'' |
|
|
81 |
|
|
|
82 |
|
|
|
83 |
add STRING after (possible) line number |
|
|
84 |
|
|
|
85 |
|
|
|
86 |
__-v__, __--first-page__=''NUMBER'' |
|
|
87 |
|
|
|
88 |
|
|
|
89 |
first line number on each logical page |
|
|
90 |
|
|
|
91 |
|
|
|
92 |
__-w__, __--number-width__=''NUMBER'' |
|
|
93 |
|
|
|
94 |
|
|
|
95 |
use NUMBER columns for line numbers |
|
|
96 |
|
|
|
97 |
|
|
|
98 |
__--help__ |
|
|
99 |
|
|
|
100 |
|
|
|
101 |
display this help and exit |
|
|
102 |
|
|
|
103 |
|
|
|
104 |
__--version__ |
|
|
105 |
|
|
|
106 |
|
|
|
107 |
output version information and exit |
|
|
108 |
|
|
|
109 |
|
|
|
110 |
By default, selects __-v1 -i1 -l1 -sTAB -w6 -nrn -hn -bt |
|
|
111 |
-fn__. CC are two delimiter characters for separating |
|
|
112 |
logical pages, a missing second character implies :. Type \ |
|
|
113 |
for . STYLE is one of: |
|
|
114 |
|
|
|
115 |
|
|
|
116 |
a |
|
|
117 |
|
|
|
118 |
|
|
|
119 |
number all lines |
|
|
120 |
|
|
|
121 |
|
|
|
122 |
t |
|
|
123 |
|
|
|
124 |
|
|
|
125 |
number only nonempty lines |
|
|
126 |
|
|
|
127 |
|
|
|
128 |
n |
|
|
129 |
|
|
|
130 |
|
|
|
131 |
number no lines |
|
|
132 |
|
|
|
133 |
|
|
|
134 |
pREGEXP |
|
|
135 |
|
|
|
136 |
|
|
|
137 |
number only lines that contain a match for |
|
|
138 |
REGEXP |
|
|
139 |
|
|
|
140 |
|
|
|
141 |
FORMAT is one of: |
|
|
142 |
|
|
|
143 |
|
|
|
144 |
ln |
|
|
145 |
|
|
|
146 |
|
|
|
147 |
left justified, no leading zeros |
|
|
148 |
|
|
|
149 |
|
|
|
150 |
rn |
|
|
151 |
|
|
|
152 |
|
|
|
153 |
right justified, no leading zeros |
|
|
154 |
|
|
|
155 |
|
|
|
156 |
rz |
|
|
157 |
|
|
|
158 |
|
|
|
159 |
right justified, leading zeros |
|
|
160 |
!!AUTHOR |
|
|
161 |
|
|
|
162 |
|
2 |
perry |
163 |
Written by Scott Bartram and David !MacKenzie. |
1 |
perry |
164 |
!!REPORTING BUGS |
|
|
165 |
|
|
|
166 |
|
|
|
167 |
Report bugs to |
|
|
168 |
!!COPYRIGHT |
|
|
169 |
|
|
|
170 |
|
|
|
171 |
Copyright 1999 Free Software Foundation, Inc. |
|
|
172 |
This is free software; see the source for copying |
|
|
173 |
conditions. There is NO warranty; not even for |
|
|
174 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR |
|
|
175 |
PURPOSE. |
|
|
176 |
!!SEE ALSO |
|
|
177 |
|
|
|
178 |
|
|
|
179 |
The full documentation for __nl__ is maintained as a |
|
|
180 |
Texinfo manual. If the __info__ and __nl__ programs |
|
|
181 |
are properly installed at your site, the |
|
|
182 |
command |
|
|
183 |
|
|
|
184 |
|
|
|
185 |
__info nl__ |
|
|
186 |
|
|
|
187 |
|
|
|
188 |
should give you access to the complete manual. |
|
|
189 |
---- |