NUML v1.20 - number lines
Revised 2-Jan-99. Copyright (c) 1996-99 by Rune Berg. TextTools Freeware.

Usage | Description | Examples | Options | Return Codes | Version History | tt_r6


UsageTop | Next

numl [log logfile] [options] [infile] [to outfile]


DescriptionTop | Previous | Next

numl copies infile to outfile, preceeding every line with a line number (1, 2, ...).

If you don't specify infile, numl reads from standard input.
If you don't specify outfile, numl writes to standard output.
If you don't specify logfile, numl writes error messages to standard error.


ExampleTop | Previous | Next

Consider the example file "mydata.txt", containing four lines:

        this is the first line
        and this is the second

        and this is the last

The command:

        numl mydata.txt

prints:

        1 this is the first line
        2 and this is the second
        3
        4 and this is the last

The command:

        numl -s0 -nw "-f03 : " mydata.txt

prints:

        0000 : this is the first line
        0001 : and this is the second

        0003 : and this is the last

The command:

        numl -cw mydata.txt

prints:

        1 this is the first line
        2 and this is the second

        3 and this is the last


OptionsTop | Previous | Next

numl recognizes the following command line options:

An empty line is a line containing only newline.


Return CodesTop | Previous | Next

numl returns with one of the following codes ("error levels"):


Version HistoryTop | Previous

These are the released versions:

End of document