beautypg.com

Edit command summary, 4–41 examples 1. if the current file is, And you issue the command – HP NonStop G-Series User Manual

Page 120: Delete 15/last edit responds with

background image

DELETE Command

EDIT Command Summary

058061 Tandem Computers Incorporated

4–41

Examples

1.

If the current file is:

11 Tom, Tom

12 The piper's son

13 Stole a pig

14 And away he run.

15 The pig was eat

16 And Tom was beat,

17 And Tom went crying

18 Down the street.

19 Tom, Tom

20 The piper's son

21 He learned to play

22 When he was young;

23 But all the tunes

24 That he could play

25 Was "Over the hills

26 And far away."

and you issue the command:

*DELETE 15/LAST

Line-range

*DELETE 15/LAST

EDIT responds with:

RANGE 15/26 CONTAINS 12 LINES. SHALL I DELETE THEM?

If you type Y or y or YES or yes, EDIT deletes lines 15 through 26, prints
these lines as it deletes them, and makes line number 14 the current
line. EDIT takes any other reply to mean NO, does not delete lines 15
through 26, and keeps the current line number the same as it was after
the command previous to this DELETE command.

This manual is related to the following products: