beautypg.com

HP NonStop G-Series User Manual

Page 95

background image

ADD Command

EDIT Command Summary

4–16

058061 Tandem Computers Incorporated

How to Use ADD

When you issue an ADD command with no line number and no
increment parameter and there is no previous ADD command (see
Example 1, “Adding Text to an Existing File,” and Examples 1 and 2,
“Adding Text to a New EDIT File”), by default EDIT:

Starts adding text at a line number following the last line number in
the EDIT file.

Numbers each new line of text by an increment of 1.

When you issue an ADD command with a line number and an
increment parameter (see Example 2, “Adding Text to an Existing
File”), EDIT:

Starts adding text to the EDIT file at the line number you specify. If
this line number already exists, EDIT starts adding text at the next
available line number.

Numbers each new line of text according to the increment you
specify.

When you issue an ADD command with no line number and no
increment parameter (see Example 3, “Adding Text to an Existing
File”), by default EDIT:

Starts adding text at a line number following the last line number of
the previous ADD command.

Numbers each new line of text according to the increment you
specified in the previous ADD command.

This manual is related to the following products: