beautypg.com

Edit command summary 4–34, Then – HP NonStop G-Series User Manual

Page 113

background image

CHANGE Command

EDIT Command Summary

4–34

058061 Tandem Computers Incorporated

3.

If line number 19 is the current line and 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."

then:

*CHANGE BOTH ALL "tom"Thomas" 11 16 17 19
11 Thomas, Thomas
16 And Thomas was beat
17 And Thomas went crying
19 Thomas, Thomas
*

Line-range-list element

of the range-specifier

parameter

EDIT searches lines 11, 16, 17, and 19 and changes every uppercase and
lowercase

tom

that it finds on a line to

Thomas

.

This manual is related to the following products: