home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d7xx
/
d747
/
aush.lha
/
AUSH
/
ExtraCmds.lha
/
englishdocs
/
nl.doc
< prev
next >
Wrap
Text File
|
1992-09-04
|
3KB
|
94 lines
NAME
nl - line numbering filter
SYNOPSIS
nl [ -htype ] [ -btype ] [ -ftype ] [ -vstart ] [ -iincr ]
[ -p ] [ -lnum ] [ -ssep ] [ -wwidth ] [ -nfmt ]
[ -dxx ] [ file... ]
DESCRIPTION
nl reads lines from the named files, or the standard input if no file
is named, and reproduces the lines on the standard output. Lines are
numbered on the left in accordance with the command options in effect.
nl views the text it reads in terms of logical pages. Line numbering
is reset at the start of each logical page. A logical page consists
of a header, a body, and a footer section. Empty sections are valid.
Different line numbering options are independently available for
header, body, and footer. The start of logical page sections are sig-
naled by input lines containing nothing but the following delimiter
character(s):
Line contents: start of:
\:\:\: header
\:\: body
\: footer
Unless optioned otherwise, nl assumes the text being read is in a
single logical page body. Command options may appear in any order.
If a file name is -, standard input will be used.
The options are:
-btype Specifies which logical page body lines are to be numbered.
Recognized types and their meaning are:
a number all lines
t number lines with printable text only
n no line numbering
Default type for logical page body is t (text lines numbered).
-htype Same as -btype except for header. Default type for logical
page header is n (no lines numbered).
-ftype Same as -btype except for footer. Default for logical page
footer is n (no lines numbered).
-vstart start is the initial value used to number logical page lines.
Default is 1.
-iincr incr is the increment value used to number logical page lines.
Default is 1.
-p Do not restart numbering at logical page delimiters.
-lnum num is the number of blank lines to be considered as one.
For example, -l2 results in only the second adjacent blank
being numbered (if the appropriate -ha, -ba, and/or -fa
option is set).
Default is 1.
-ssep sep is the character(s) used in separating the line number
and the corresponding text line. Default sep is a tab.
-wwidth width is the number of characters to be used for the line
number.
Default number is 6.
-nfmt fmt is the line numbering format.
Recognized values are: ln, left justified, leading zeroes
suppressed; rn, right justified, leading zeroes supressed;
rz, right justified, leading zeroes kept.
Default fmt is rn (right justified).
-dxx The delimiter characters specifying the start of a logical
page section may be changed from the default characters (\:)
to two user-specified characters.
RETURN CODES
0 if all went well
1 in case of bad argument (fatal)
2 if at least one file couldn't be opened (non fatal)
CHANGES FROM UNIX
Several files can be specified
Two characters must be specified for -d option
pexpr type for -h/-b/-f options is not supported
AUTHOR
Denis GOUNELLE
Last modified 04-Sep-92