beautypg.com

The number command: renumbering lines – HP NonStop G-Series User Manual

Page 67

background image

The NUMBER Command: Renumbering Lines

Revising Text in Your File

3–24

058061 Tandem Computers Incorporated

The NUMBER

Command:

Renumbering Lines

EDIT does not automatically renumber lines as you work in your EDIT file.
EDIT silently assigns sequential line numbers to the lines in your file as you
edit, using decimal line numbers when whole numbers are not available.

You can use the NUMBER command to:

Renumber your entire file

Renumber a portion of your file

You might want to renumber an entire file when you’ve done a great deal
of editing and the line numbers become difficult to follow. Or you might
need to renumber a portion of a file to make room for new text.

Suppose your file contains these lines:

1 Jack and Jill

1.1 went up a hill

2 To fetch a pail

3 of water.

9 Jack fell down and

10 broke his crown

11 And Jill came

12 tumbling after.

15 Jack and Jill

16 went up a hill

17 To fetch a pail

18 of water.

20 Jack and Jill

25 Jack and Jill

30 Jack and Jill

50 One shoe on and

51 one shoe off,

Renumber the entire file by using the range ALL with the command:

*NUMBER ALL

*

This manual is related to the following products: