diff options
Diffstat (limited to 'usr/src/man/man1/nl.1')
-rw-r--r-- | usr/src/man/man1/nl.1 | 82 |
1 files changed, 18 insertions, 64 deletions
diff --git a/usr/src/man/man1/nl.1 b/usr/src/man/man1/nl.1 index ee000bdbb0..d8deee657b 100644 --- a/usr/src/man/man1/nl.1 +++ b/usr/src/man/man1/nl.1 @@ -1,27 +1,27 @@ '\" te .\" Copyright 1989 AT&T Copyright (c) 1995, Sun Microsystems, Inc. All Rights Reserved Portions Copyright (c) 1992, X/Open Company Limited All Rights Reserved -.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at +.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at .\" http://www.opengroup.org/bookstore/. .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html. .\" This notice shall appear on any product containing this material. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH nl 1 "28 Mar 1995" "SunOS 5.11" "User Commands" +.TH NL 1 "Mar 28, 1995" .SH NAME nl \- line numbering filter .SH SYNOPSIS .LP .nf -\fB/usr/bin/nl\fR [\fB-p\fR] [\fB-b\fR [\fItype\fR]] [\fB-d\fR [\fIdelim\fR]] [\fB-f\fR [\fItype\fR]] - [\fB-h\fR [\fItype\fR]] [\fB-i\fR [\fIincr\fR]] [\fB-l\fR [\fInum\fR]] [\fB-n\fR [\fIformat\fR]] +\fB/usr/bin/nl\fR [\fB-p\fR] [\fB-b\fR [\fItype\fR]] [\fB-d\fR [\fIdelim\fR]] [\fB-f\fR [\fItype\fR]] + [\fB-h\fR [\fItype\fR]] [\fB-i\fR [\fIincr\fR]] [\fB-l\fR [\fInum\fR]] [\fB-n\fR [\fIformat\fR]] [\fB-s\fR [\fIsep\fR]] [\fB-w\fR [\fIwidth\fR]] [\fB-v\fR [\fIstartnum\fR]] [\fIfile\fR] .fi .LP .nf -\fB/usr/xpg4/bin/nl\fR [\fB-p\fR] [\fB-b\fR \fItype\fR] [\fB-d\fR \fIdelim\fR] [\fB-f\fR \fItype\fR] - [\fB-h\fR \fItype\fR] [\fB-i\fR \fIincr\fR] [\fB-l\fR \fInum\fR] [\fB-n\fR \fIformat\fR] [\fB-s\fR \fIsep\fR] +\fB/usr/xpg4/bin/nl\fR [\fB-p\fR] [\fB-b\fR \fItype\fR] [\fB-d\fR \fIdelim\fR] [\fB-f\fR \fItype\fR] + [\fB-h\fR \fItype\fR] [\fB-i\fR \fIincr\fR] [\fB-l\fR \fInum\fR] [\fB-n\fR \fIformat\fR] [\fB-s\fR \fIsep\fR] [\fB-w\fR \fIwidth\fR] [\fB-v\fR \fIstartnum\fR] [\fIfile\fR] .fi @@ -48,17 +48,16 @@ nothing but the following delimiter character(s): .sp .TS -tab() box; -cw(2.75i) |cw(2.75i) -lw(2.75i) |lw(2.75i) -. -Line contentsStart Of +box; +c | c +l | l . +Line contents Start Of _ -\e:\e:\e:header +\e:\e:\e: header _ -\e:\e:body +\e:\e: body _ -\e:footer +\e: footer .TE .sp @@ -77,55 +76,45 @@ arguments. If option-arguments of \fB/usr/bin/nl\fR options are not specified, these options result in the default. The supported options are: .sp .ne 2 -.mk .na \fB\fB-b\fR\fItype\fR\fR .ad .RS 14n -.rt Specifies which logical page body lines are to be numbered. Recognized \fItype\fRs and their meanings are: .sp .ne 2 -.mk .na \fB\fBa\fR\fR .ad .RS 8n -.rt number all lines .RE .sp .ne 2 -.mk .na \fB\fBt\fR\fR .ad .RS 8n -.rt number all non-empty lines. .RE .sp .ne 2 -.mk .na \fB\fBn\fR\fR .ad .RS 8n -.rt no line numbering .RE .sp .ne 2 -.mk .na \fB\fBp\fIexp\fR\fR\fR .ad .RS 8n -.rt number only lines that contain the regular expression specified in \fIexp\fR. See NOTES below. .RE @@ -135,24 +124,20 @@ Default \fItype\fR for logical page body is \fBt\fR (text lines numbered). .sp .ne 2 -.mk .na \fB\fB-f\fR\fItype\fR\fR .ad .RS 14n -.rt Same as \fB-b\fR\fItype\fR except for footer. Default \fItype\fR for logical page footer is \fBn\fR (no lines numbered). .RE .sp .ne 2 -.mk .na \fB\fB-d\fR\fIdelim\fR\fR .ad .RS 14n -.rt The two delimiter characters specifying the start of a logical page section may be changed from the default characters (\e\|:\|) to two user-specified characters. If only one character is entered, the second character remains the @@ -162,36 +147,30 @@ delimiter characters. To enter a backslash, use two backslashes. .sp .ne 2 -.mk .na \fB\fB-h\fR\fItype\fR\fR .ad .RS 14n -.rt Same as \fB-b\fR\fItype\fR except for header. Default \fItype\fR for logical page header is \fBn\fR (no lines numbered). .RE .sp .ne 2 -.mk .na \fB\fB-i\fR\fIincr\fR\fR .ad .RS 14n -.rt \fIincr\fR is the increment value used to number logical page lines. Default \fIincr\fR is \fB1\fR. .RE .sp .ne 2 -.mk .na \fB\fB-l\fR\fInum\fR\fR .ad .RS 14n -.rt \fInum\fR is the number of blank lines to be considered as one. For example, \fB\(mil2\fR results in only the second adjacent blank being numbered (if the appropriate \fB-ha\fR, \fB-ba\fR, and/or \fB-fa\fR option is set). Default @@ -200,43 +179,35 @@ appropriate \fB-ha\fR, \fB-ba\fR, and/or \fB-fa\fR option is set). Default .sp .ne 2 -.mk .na \fB\fB-n\fR\fIformat\fR\fR .ad .RS 14n -.rt \fIformat\fR is the line numbering format. Recognized values are: .sp .ne 2 -.mk .na \fB\fBln\fR\fR .ad .RS 6n -.rt left justified, leading zeroes suppressed .RE .sp .ne 2 -.mk .na \fB\fBrn\fR\fR .ad .RS 6n -.rt right justified, leading zeroes suppressed .RE .sp .ne 2 -.mk .na \fB\fBrz\fR\fR .ad .RS 6n -.rt right justified, leading zeroes kept .RE @@ -245,47 +216,39 @@ Default \fIformat\fR is \fBrn\fR (right justified). .sp .ne 2 -.mk .na \fB\fB-p\fR\fR .ad .RS 14n -.rt Do not restart numbering at logical page delimiters. .RE .sp .ne 2 -.mk .na \fB\fB-s\fR\fIsep\fR\fR .ad .RS 14n -.rt \fIsep\fR is the character(s) used in separating the line number and the corresponding text line. Default \fIsep\fR is a \fBTAB\fR. .RE .sp .ne 2 -.mk .na \fB\fB-v\fR\fIstartnum\fR\fR .ad .RS 14n -.rt \fIstartnum\fR is the initial value used to number logical page lines. Default \fIstartnum\fR is \fB1\fR. .RE .sp .ne 2 -.mk .na \fB\fB-w\fR\fIwidth\fR\fR .ad .RS 14n -.rt \fIwidth\fR is the number of characters to be used for the line number. Default \fIwidth\fR is \fB6\fR. .RE @@ -296,12 +259,10 @@ corresponding text line. Default \fIsep\fR is a \fBTAB\fR. The following operand is supported: .sp .ne 2 -.mk .na \fB\fIfile\fR\fR .ad .RS 8n -.rt A path name of a text file to be line-numbered. .RE @@ -338,30 +299,25 @@ that affect the execution of \fBnl\fR: \fBLANG\fR, \fBLC_ALL\fR, The following exit values are returned: .sp .ne 2 -.mk .na \fB\fB0\fR\fR .ad .RS 6n -.rt Successful completion. .RE .sp .ne 2 -.mk .na \fB\fB>0\fR\fR .ad .RS 6n -.rt An error occurred. .RE .SH FILES .sp .ne 2 -.mk .na \fB\fB/usr/lib/locale/\fIlocale\fR/LC_COLLATE/CollTable\fR\fR .ad @@ -372,7 +328,6 @@ Collation table generated by \fBlocaledef\fR .sp .ne 2 -.mk .na \fB\fB/usr/lib/locale/\fIlocale\fR/LC_COLLATE/coll.so\fR\fR .ad @@ -390,13 +345,12 @@ See \fBattributes\fR(5) for descriptions of the following attributes: .sp .TS -tab() box; -cw(2.75i) |cw(2.75i) -lw(2.75i) |lw(2.75i) -. -ATTRIBUTE TYPEATTRIBUTE VALUE +box; +c | c +l | l . +ATTRIBUTE TYPE ATTRIBUTE VALUE _ -Interface StabilityStandard +Interface Stability Standard .TE .SH SEE ALSO |