HP NonStop G-Series User Manual

Page 38

Advertising
background image

The ADD Command: Adding Text to Your File

Adding and Displaying Text

2–2

058061 Tandem Computers Incorporated

To insert text into an existing file, you can ask EDIT to start adding text at a
particular line number. For example, assume you want to insert lines into
your file and your current file is:

1 Peter, Peter

2 Pumpkin eater

3 Put her in a pumpkin shell

4 And there he kept her very well.

The command:

*ADD 2

2.1 Had a wife

2.2 But couldn't keep her

2.3 //

*

causes EDIT to begin inserting text after line 2. EDIT begins adding new
text at line number 2.1, using a decimal numbering of .1, and continues to
use this numbering increment with each new line you add.

When you finish adding text, tell EDIT you are done by pressing

RETURN

,

typing a double slash (//) in the first two columns, then pressing

RETURN

again. EDIT returns a prompt and awaits further commands.

EDIT uses numbering increments from .001 to 10 to add lines. Study the
following examples.

*ADD 35 BY 10
35 Tom, Tom,
45 The piper's son
55 //
*

Line number 45 is both
the last line of new text

and the current line.

Starts adding text at

line number 35

Advertising
This manual is related to the following products: