beautypg.com

HP NonStop G-Series User Manual

Page 162

background image

NUMBER Command

EDIT Command Summary

058061 Tandem Computers Incorporated

4–83

NUMBER Command

The NUMBER command renumbers lines in the current file. The NUMBER
command does not alter the order in which the lines of text occur.

What to Enter

NUMBER { line-range } [ TO

line-num ] [ BY incr ]

line-range

references one or more contiguous lines in an EDIT file. Turn to “Line-
Range Parameter” in Section 5 for a full explanation of this range.

TO

specifies the first line number to be assigned to the renumbered lines. If
you omit TO and if you specify a line-range parameter that indicates
more than one line of text, the first line number assigned is that of the
first line in the range; if you omit TO and if you specify the ALL
keyword, the first line number assigned is line number 1.

line-num

specifies any EDIT file line. line-num is a number from .001 to 99999.999
or the keyword FIRST or LAST.

BY

specifies the numbering increment of the renumbered lines. If you omit
the BY parameter, EDIT chooses the increment (either 1, .1, .01, or .001).
EDIT chooses the increment that has the same number of digits as the
fractional part of line-num or is less than the difference between the
renumbered lines and the next existing line number.

This manual is related to the following products: