beautypg.com

Adding and displaying text – HP NonStop G-Series User Manual

Page 39

background image

The ADD Command: Adding Text to Your File

Adding and Displaying Text

058061 Tandem Computers Incorporated

2–3

The numbering of the previous ADD command uses whole numbers, and
the last line of new text is line number 45. Therefore, the command:

*ADD
55 Stole a pig
65 And away he run.
75 Tom, Tom,
85 And far away."
95 //
*

Line number 85 is both
the last line of new text

and the current line.

starts adding text at line 55.

You can use a decimal line number to add lines between existing lines of
text. The command:

*ADD 75.1

75.1 The piper's son

75.2 Are "Over the hills

75.3 //

*

causes EDIT to use a decimal numbering system based on .1.

If, again, you want to insert text lines into the file at line 75.1, EDIT notes
that text already exists there by returning that line number and its text.
EDIT then provides you with the next available line:

*ADD 75.1

75.1 The piper's son

75.11 He learned to play

75.12 When he was young;

75.13 //

*

This manual is related to the following products: