beautypg.com

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

Page 116

background image

CHANGE Command

EDIT Command Summary

058061 Tandem Computers Incorporated

4–37

6.

If 19 is the current line and the current file is:

11 Thomas, TOM

12 The piper's son

13 Stole a pig

14 And away he run.

15 The pig was eat

16 And Tomwas beat,

17 And Tomwent crying

18 Down the street.

19 Thomas, 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"TOMMY " WORD BOTH "and"
16 And TOMMY was beat,
17 And TOMMY went crying
*

String-range element

of the range-specifier

parameter

EDIT searches the entire file for all the lines that contain uppercase and
lowercase occurrences of the word

and

, then changes every

tom

that it

finds on these lines to

TOMMY(space)

.

This manual is related to the following products: