1 .\" You may copy, distribute and modify under the terms of the LDP General
2 .\" Public License as specified in the LICENSE file that comes with the
3 .\" gnumaniak distribution
5 .\" The author kindly requests that no comments regarding the "better"
6 .\" suitability or up-to-date notices of any info documentation alternative
7 .\" is added without contacting him first.
9 .\" (C) 2002 Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
12 .\" man pages are NOT obsolete!
13 .\" <ragnar@ragnar-hojland.com>
15 .\" Japanese Version Copyright (c) 2000 NAKANO Takeo all rights reserved.
16 .\" Translated Sun 12 Mar 2000 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
18 .TH NL 1 "7 October 2002" "GNU textutils 2.1"
20 .\"O \fBnl\fR \- number lines and write files
22 nl \- ¹ÔÈÖ¹æ¤òÉÕ¤±¤Æ¥Õ¥¡¥¤¥ë¤ò½ÐÎϤ¹¤ë
26 .RB [ \-p "] [" "\-b \fISTYLE\fR" "] [" "\-d \fICD\fR" ]
27 .RB [ "\-f \fISTYLE\fR" "] [" "\-h \fISTYLE\fR" "] [" "\-i \fINUMBER\fR" ]
28 .RB [ "\-l \fINUMBER\fR" "] [" "\-n \fIFORMAT\fR" "] [" "\-s \fISTRING\fR" ]
29 .RB [ "\-v \fINUMBER\fR" "] [" "\-w \fINUMBER\fR" ]
30 .RB [ "\-\-body\-numbering=\fISTYLE\fR" ]
31 .RB [ "\-\-footer\-numbering=\fISTYLE\fR" ]
32 .RB [ "\-\-header\-numbering=\fISTYLE\fR" ]
33 .RB [ "\-\-join\-blank\-lines=\fINUMBER\fR" ]
34 .RB [ "\-\-page\-increment=\fINUMBER\fR" ]
35 .RB [ \-\-no\-renumber ]
36 .RB [ "\-\-number\-format=\fIFORMAT\fR" ]
37 .RB [ "\-\-number\-separator=\fIFORMAT\fR" ]
38 .RB [ "\-\-number\-width=\fINUMBER\fR" ]
39 .RB [ "\-\-section\-delimiter=\fICD\fR" ]
40 .RB [ "\-\-starting\-line\-number=\fINUMBER\fR" ]
43 .BR nl " [" \-\-help "] [" \-\-version ]
49 .\"O to standard output, with line numbers added to some or all of the lines. If
51 .\"O is omitted or if is a
53 .\"O standard input is used.
57 ¤½¤ì¤¾¤ì¤òɸ½à½ÐÎϤ˽ñ¤¯¡£
58 ¤½¤ÎºÝ¹ÔÈÖ¹æ¤ò°ìÉô¤Þ¤¿¤ÏÁ´Éô¤Î¹Ô¤ËÄɲ乤롣
60 ¤¬°ì¤Ä¤âÍ¿¤¨¤é¤ì¤Ê¤¤¤Èɸ½àÆþÎϤ«¤éÆɤ߹þ¤à¡£¤Þ¤¿
64 ¤À¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ïɸ½àÆþÎϤ¬ÍѤ¤¤é¤ì¤ë¡£
67 .\"O decomposes its input into (logical) pages; by default, the line
68 .\"O number is reset to 1 at the top of each logical page.
70 .\"O treats all of the input files as a single document; it does not reset line
71 .\"O numbers or logical pages between files.
73 ¤ÏÆþÎϤòÏÀÍý¥Ú¡¼¥¸ (logical page) ¤Ëʬ²ò¤¹¤ë¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢
74 ¹ÔÈÖ¹æ¤Ï³Æ¡¹¤ÎÏÀÍý¥Ú¡¼¥¸¤ÎÀèƬ¤Ç 1 ¤Ë¥ê¥»¥Ã¥È¤µ¤ì¤ë¡£
76 ¤ÏÆþÎϤµ¤ì¤¿¥Õ¥¡¥¤¥ë¤¹¤Ù¤Æ¤ò¤Þ¤È¤á¤Æ¤Ò¤È¤Ä¤Îʸ½ñ¤È¤ß¤Ê¤¹¡£
77 ¤·¤¿¤¬¤Ã¤Æ¥Õ¥¡¥¤¥ë¤ÎÀÚ¤ìÌܤǤâ¹ÔÈÖ¹æ¤äÏÀÍý¥Ú¡¼¥¸¤Ï¥ê¥»¥Ã¥È¤µ¤ì¤Ê¤¤¡£
81 .B \-b \fISTYLE\fB, \-\-body\-numbering=\fISTYLE
82 .\"O Select the numbering style for lines in the body section of each
83 .\"O logical page. When a line is not numbered, the current line number
84 .\"O is not incremented, but the line number separator character is
85 .\"O still prepended to the line. The styles are:
86 ³ÆÏÀÍý¥Ú¡¼¥¸¤ÎËÜʸ¥»¥¯¥·¥ç¥ó¤Ë¤ª¤±¤ë¹Ô¤ÎÈÖ¹æÉÕ¤±¤ÎÊý¼°¤òÁªÂò¤¹¤ë¡£
87 ¹Ô¤ËÈֹ椬¤Ä¤«¤Ê¤¤¤È¡¢¥«¥ì¥ó¥È¤Î¹ÔÈÖ¹æ¤ÏÁý²Ã¤·¤Ê¤¤¤¬¡¢
88 ¹ÔÈÖ¹æ¤Î¶èÀÚ¤ëʸ»ú¤Ï¹Ô¤ÎÁ°¤ËÃÖ¤«¤ì¤ë¡£·Á¼°¤Ï°Ê²¼¤ÎÄ̤ꡣ
93 Á´¤Æ¤Î¹Ô¤ËÈÖ¹æ¤ò¤Õ¤ë¡£
96 .\"O number only nonempty lines (default for body)
97 ¶õ¹Ô¤Ç¤Ê¤¤¹Ô¤Î¤ß¤ËÈÖ¹æ¤ò¤Õ¤ë (ËÜʸ¥»¥¯¥·¥ç¥ó¤Î¥Ç¥Õ¥©¥ë¥È)
100 .\"O do not number lines (default for header and footer)
101 ¹ÔÈÖ¹æ¤ò¤Õ¤é¤Ê¤¤ (¥Ø¥Ã¥À¡¦¥Õ¥Ã¥¿¥»¥¯¥·¥ç¥ó¤Î¥Ç¥Õ¥©¥ë¥È)
104 .\"O number only lines that contain a match for
107 ¤Ë¥Þ¥Ã¥Á¤·¤¿¹Ô¤À¤±¤ËÈÖ¹æ¤ò¤Õ¤ë¡£
110 .B \-d \fICD\fB, \-\-section\-delimiter=\fICD
111 .\"O Set the section delimiter characters to \fICD\fR; default is `\e:'. If
112 .\"O only \fIC\fR is given, the second remains `:'. (Remember to protect `\e'
113 .\"O or other metacharacters from shell expansion with quotes or extra
115 ¥»¥¯¥·¥ç¥ó¶èÀÚ¤ê¤È¤Ê¤ëÆóʸ»ú¤ò
117 ¤Ë¤¹¤ë (¥Ç¥Õ¥©¥ë¥È¤Ï `e:')¡£
119 ¤À¤±¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Ï¡¢2 ʸ»ú¤á¤Ï `:' ¤Î¤Þ¤Þ¤È¤Ê¤ë¡£
120 ('\e' Åù¤Î¥á¥¿¥¥ã¥é¥¯¥¿¤ò»ØÄꤹ¤ë¾ì¹ç¤Ë¤Ï¡¢¥·¥§¥ë¤ÎŸ³«¤«¤é¼é¤ë¤¿¤á¤Ë
121 ¥¯¥©¡¼¥È¤¹¤ë¤«¡¢¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å¤ò°ì¤Ä;·×¤ËÉÕ¤±¤ë¤Î¤ò˺¤ì¤Ê¤¤¤è¤¦¤Ë¡£)
123 .B \-f \fISTYLE\fB, \-\-footer\-numbering=\fISTYLE
125 .\"O .BR \-\-body\-numbering .
126 .B \-\-body\-numbering
129 .B \-h \fISTYLE\fB, \-\-header\-numbering=\fISTYLE
131 .\"O .BR \-\-body\-numbering .
132 .B \-\-body\-numbering
135 .B \-i \fINUMBER\fB, \-\-page\-increment=\fINUMBER
136 .\"O Increment line numbers by
141 ¤Ë¤¹¤ë (¥Ç¥Õ¥©¥ë¥È¤Ï 1)¡£
143 .B \-l \fINUMBER\fB, \-\-join\-blank\-lines=\fINUMBER
146 .\"O (default 1) consecutive empty lines to be one logical line for numbering,
147 .\"O and only number the last one. Where fewer than
149 .\"O consecutive empty lines occur, do not number them. An empty line is one
150 .\"O that contains no characters, not even spaces or tabs.
153 ÈÖ¹æÉÕ¤±¤ÎºÝ¤Ë 1 ÏÀÍý¹Ô¤È¤ß¤Ê¤·¡¢ºÇ¸å¤Î¶õ¹Ô¤Ë¤Î¤ßÈÖ¹æ¤òÉÕ¤±¤ë
158 °Ê²¼¤Î¾ì¹ç¤Ë¤Ï¡¢ÈÖ¹æÉÕ¤±¤ò¹Ô¤ï¤Ê¤¤¡£
159 ¶õ¹Ô¤È¤Ï¥¹¥Ú¡¼¥¹¤ä¥¿¥Ö¤â´Þ¤á¡¢Ê¸»ú¤òÁ´¤¯´Þ¤Þ¤Ê¤¤¹Ô¤Î¤³¤È¡£
161 .B \-n \fIFORMAT\fB, \-\-number\-format=\fIFORMAT
162 .\"O Select the line numbering format (default is `\fBrn\fR'):
163 ¹ÔÈÖ¹æ¤Î½ÐÎÏ¥Õ¥©¡¼¥Þ¥Ã¥È¤ò»ØÄꤹ¤ë (¥Ç¥Õ¥©¥ë¥È¤Ï `\fBrn\fR'):
167 .\"O left justified, no leading zeros
168 º¸µÍ¤á¤Ë¤·¡¢ÀèƬ¤Î 0 Ëä¤á¤ò¤·¤Ê¤¤¡£
171 .\"O right justified, no leading zeros
172 ±¦µÍ¤á¤Ë¤·¡¢ÀèƬ¤Î 0 Ëä¤á¤ò¤·¤Ê¤¤¡£
175 .\"O right justified, leading zeros
176 ±¦µÍ¤á¤Ë¤·¡¢ÀèƬ¤Ï 0 ¤ÇËä¤á¤ë¡£
179 .B \-p, \-\-no\-renumber
180 .\"O Do not reset the line number at the start of a logical page.
181 ÏÀÍý¥Ú¡¼¥¸¤ÎÀèƬ¤Ç¹ÔÈÖ¹æ¤ò¥ê¥»¥Ã¥È¤·¤Ê¤¤¡£
183 .B \-s \fISTRING\fB, \-\-number\-separator=\fIFORMAT
184 .\"O Separate the line number from the text line in the output with
186 .\"O (default is <TAB>).
187 ½ÐÎÏ¥Õ¥¡¥¤¥ë¤Î¹ÔÈÖ¹æ¤È¥Æ¥¥¹¥È¹Ô¤Î´Ö¤Î¶èÀÚ¤ê¤Ë
189 ¤òÍѤ¤¤ë (¥Ç¥Õ¥©¥ë¥È¤Ï <TAB>)¡£
191 .B \-v \fINUMBER\fB, \-\-starting\-line\-number=\fINUMBER
192 .\"O Set the initial line number on each logical page to
195 ¤½¤ì¤¾¤ì¤ÎÏÀÍý¥Ú¡¼¥¸¤Î¹ÔÈÖ¹æ¤ò
197 ¤«¤é»Ï¤á¤ë (¥Ç¥Õ¥©¥ë¥È¤Ï 1)¡£
199 .B \-w \fINUMBER\fB, \-\-number\-width=\fINUMBER
202 .\"O characters for line numbers (default 6).
203 ¹ÔÈÖ¹æɽ¼¨¤ËÍѤ¤¤ëʸ»ú¿ô¤ò
205 ¤Ë¤¹¤ë (¥Ç¥Õ¥©¥ë¥È¤Ï 6)¡£
208 .\"O Print a usage message on standard output and exit successfully.
209 ɸ½à½ÐÎϤ˻ÈÍÑÊýË¡¤Î¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
212 .\"O Print version information on standard output then exit successfully.
213 ɸ½à½ÐÎϤ˥С¼¥¸¥ç¥ó¾ðÊó¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
214 .\"O .SH LOGICAL PAGES
216 .\"O A logical page consists of three sections: header, body, and footer.
217 .\"O Any of the sections can be empty. Each can be numbered in a different
218 .\"O style from the others.
219 ÏÀÍý¥Ú¡¼¥¸¤Ï»°¤Ä¤Î¥»¥¯¥·¥ç¥ó¤«¤é¤Ê¤ë¡£
220 ¥Ø¥Ã¥À (header)¡¢ËÜʸ (body)¡¢¥Õ¥Ã¥¿ (footer) ¤Ç¤¢¤ë¡£
221 ¥»¥¯¥·¥ç¥ó¤Ï¶õ¤Ç¤¢¤Ã¤Æ¤â¤è¤¤¡£
222 ¤Þ¤¿¡¢¤½¤ì¤¾¤ì¤òÊ̤ʷÁ¼°¤ÇÈÖ¹æÉÕ¤±¤¹¤ë¤³¤È¤â¤Ç¤¤ë¡£
224 .\"O The beginnings of the sections of logical pages are indicated in the
225 .\"O input file by a line containing exactly one of these delimiter strings:
226 ÆþÎÏ¥Õ¥¡¥¤¥ëÃæ¤Ë°Ê²¼¤Î¥Ç¥ê¥ß¥¿Ê¸»úÎó (delimiter string)
227 ¤À¤±¤«¤é¤Ê¤ë¹Ô¤¬¤¢¤ë¤È¡¢ÏÀÍý¥Ú¡¼¥¸¤Î¥»¥¯¥·¥ç¥ó¤Î»Ï¤Þ¤ê¤È¤ß¤Ê¤µ¤ì¤ë¡£
238 .\"O start of footer.
241 .\"O The two characters from which these strings are made can be changed
243 .\"O .RB ` \e "' and `" : '
244 .\"O via options, but the pattern and length of each string cannot be
245 .\"O changed. A section delimiter is replaced by an empty line on output. Any
246 .\"O text that comes before the first section delimiter string in the input file
247 .\"O is considered to be part of a body section, so
249 .\"O treats a file that contains no section delimiters as a single body section.
250 ¤³¤ì¤é¤Îʸ»úÎó¤ò¹½À®¤¹¤ëÆóʸ»ú¤Ï¡¢¥ª¥×¥·¥ç¥ó¤Ë¤è¤Ã¤Æ
251 .RB ` \e "' ¤È `" : '
252 °Ê³°¤Ë¤âÊѹ¹¤Ç¤¤ë¡£¤·¤«¤·¥Ñ¥¿¡¼¥ó¤È¤½¤ì¤¾¤ì¤Îʸ»úÎó¤ÎŤµ¤ÏÊѹ¹¤Ç¤¤Ê¤¤¡£
253 ¥»¥¯¥·¥ç¥ó¤Î¥Ç¥ê¥ß¥¿Ê¸»úÎó¤Ï½ÐÎϤǤ϶õ¹Ô¤È¤Ê¤ë¡£
255 ºÇ½é¤Î¥»¥¯¥·¥ç¥ó¥Ç¥ê¥ß¥¿Ê¸»úÎó¤ÎÁ°¤ËÍè¤ë¥Æ¥¥¹¥È¤ÏËÜʸ¥»¥¯¥·¥ç¥ó¤È¤ß¤Ê¤µ¤ì¤ë¡£
258 ¤Ï¡¢¥»¥¯¥·¥ç¥ó¤Î¥Ç¥ê¥ß¥¿Ê¸»úÎó¤ò´Þ¤Þ¤Ê¤¤¥Õ¥¡¥¤¥ë¤ò
259 ñ°ì¤ÎËÜʸ¥»¥¯¥·¥ç¥ó¤«¤é¤Ê¤ë¤â¤Î¤È¤ß¤Ê¤¹¡£
262 .\"O Report bugs to bug-textutils@gnu.org.
264 .\"O Man page by Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
265 ¥×¥í¥°¥é¥à¤Î¥Ð¥°¤Ë¤Ä¤¤¤Æ¤Ï bug-textutils@gnu.org ¤ËÊó¹ð¤·¤Æ¤¯¤À¤µ¤¤¡£
267 man ¥Ú¡¼¥¸¤Ï Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com> ¤¬ºîÀ®¤·¤Þ¤·¤¿¡£