Revising text in your file 3–14, If the current file is, Then – HP NonStop G-Series User Manual

Page 57: Using keywords with the change command

Advertising
background image

Using Keywords With the CHANGE Command

Revising Text in Your File

3–14

058061 Tandem Computers Incorporated

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."

then:

*CHANGE ALL BOTH "tom"Thomas" 11 16 17 19

11 Thomas, Thomas

16 And Thomas was beat

17 And Thomas went crying

19 Thomas, Thomas

*

EDIT searches lines 11, 16, 17, and 19 and changes every uppercase and
lowercase tom it finds to Thomas.

When you use the keyword WORD, EDIT changes only those occurrences
of a character string that constitute a word. To EDIT, a word is (1) any
character string that is preceded and followed by a space or any character
other than a number or letter or (2) a character string that occurs at the end
of a line.

Advertising
This manual is related to the following products: