HP NonStop G-Series User Manual

Page 47

Advertising
background image

The DELETE Command: Deleting Lines

Revising Text in Your File

3–4

058061 Tandem Computers Incorporated

If you have 10 lines or less in your file, as in the previous example, EDIT
will simply list the deleted lines. However, if there are over 10 lines, EDIT
responds with a prompt, asking you permission to delete the lines. Suppose
you have 25 lines in your file, and you want to delete 12 lines:

*DELETE 1/12

RANGE 1/12 CONTAINS 12 LINES. SHALL I DELETE THEM?

If you type YES (or simply Y), EDIT deletes lines 1 through 12 and lists
these lines as it deletes them (but you can use the QUIET keyword to tell
EDIT not to list the deleted lines). If there are any remaining lines in your
file—in this case, lines 13 through 25—the next line, line 13 here, becomes
the current line. Any reply at the prompt other than YES (or yes, Y, or y) is
taken by EDIT to mean NO. In that case, EDIT does not delete the lines, and
the current line is the same as it was after the command previous to this
DELETE command.

Advertising
This manual is related to the following products: