beautypg.com

The delete command: deleting lines – HP NonStop G-Series User Manual

Page 45

background image

The DELETE Command: Deleting Lines

Revising Text in Your File

3–2

058061 Tandem Computers Incorporated

The DELETE

Command: Deleting

Lines

You can use the DELETE command to:

Delete a single line

Delete consecutive lines

Delete several lines

Delete all lines

Suppose your file contains the following lines:

1 Jack be nimble

1.1 Jack be quick

1.2 Jack jump over the candlestick.

2 Jack and Jill

2.1 Went up a hill

3 To fetch a pail of water.

4 Jack fell down

5 And broke his crown

6 And Jill came tumbling after.

You can delete one line of text by typing:

*DELETE 3

3 To fetch a pail of water.

*

EDIT displays the line that it deletes. Then, if you list your file, you can see
that line 3 is gone.

You can delete several consecutive lines of text. For example, to delete the
text starting at line number 2 and ending with line number 5, type:

*DELETE 2/5

2 Jack and Jill

2.1 Went up a hill

4 Jack fell down

5 And broke his crown

*

This manual is related to the following products: