NUM(1) — UNIX Programmer’s Manual
NAME
num − number lines
SYNOPSIS
num [ file ...]
DESCRIPTION
The lines in the specified files, or the standard input, are copied to the standard output preceded by line numbers. Tabs remain aligned in the output as the lines are printed preceded by the number blank padded to six digits and then 2 spaces.
The operation of num may be duplicated with the −n option of the cat(1) command.
EXAMPLE
num filea > fileb
will number the lines of filea and send the output to fileb.
Num can also be performed with the −n option of the cat command.
SEE ALSO
7th Edition — 1/27/82