Edit command summary 4–84 – HP NonStop G-Series User Manual
Page 163
NUMBER Command
EDIT Command Summary
4–84
058061 Tandem Computers Incorporated
incr
is a number from .001 through 10. If you specify an increment that
requires line numbers to exceed 99999.999, EDIT ignores the increment
you specify and renumbers the entire file starting at 1 by an increment
of 1.
How to Use NUMBER
You can use the NUMBER command when you want to reassign the line
numbers in your file or to create room within your file to insert text. You
cannot, however, reassign line numbers with the NUMBER command in
order to move lines in the file. For example, if the current file is:
3 Humpty Dumpty
7 sat on a wall,
9 Humpty Dumpty
9.1 had a great fall;
23 All the King's horses
30 And all the King's men
32 Couldn't put Humpty Dumpty
46 Together again.
the following command is invalid because line numbers exist between 6
and 9.1. When you issue an invalid NUMBER command, EDIT prints an
error message and does not execute the NUMBER command:
*NUMBER 9.1/LAST TO 6
^ -- ERROR --
THE RENUMBERING WOULD OVERLAP EXISTING LINES
*