UTERMINAL
TERMINAL
NEXT
$V1$
PAUSE
BOTCLEAN
ENCORE5
CLEAN
ENCORE
BOX
COMMAND
GO
nl
SYNTAX
nl [-options] file
FUNCTION
nl adds line numbers to a file. Line numbering
is reset at the start of each logical page.
SOME OPTIONS:
-p - do not restart numbering at logical
page delimiters.
-i incr - incr is the increment value used to number
logical page lines. The default is 1.
-w width - width is the number of characters to be used
for the line number. The default is 6.
Let us use the nl command on the above file.
datafile
nl reads lines from
the named file or
standard input if
no file is named,
and reproduces the
lines with numbers
on the standard
output.
Please enter the nl command to print the above
file incrementing by 5 and with a width of 10 characters
Enter here:
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please use nl with -w10 and -i5 options.
Please type nl -w10 -i5 datafile.
I guess I must type this for you:
FORGET1
nl -w10 -i5 datafile
Observe the result on above.
1 nl reads lines from
6 the named file or
11 standard input if
16 no file is named,
21 and reproduces the
26 lines with numbers
31 on the standard
36 output.