Revising text in your file, 3–13 your file contains these lines – HP NonStop G-Series User Manual
Page 56
Using Keywords With the CHANGE Command
Revising Text in Your File
058061 Tandem Computers Incorporated
3–13
Your file contains these lines:
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."
Use the keyword ALL here to change all occurrences of Tom to TOM in the
specified line range:
*CHANGE ALL "Tom"TOM" 11/18
11 TOM, TOM
16 And TOM was beat
17 And TOM went crying
*
Range
Keyword
Notice position of
keyword in the
command line.
You can use the keyword BOTH if you want EDIT to change both
uppercase and lowercase (or mixed) occurrences of an existing character
string to a new string. If you omit BOTH, EDIT only changes the character
string in the text that matches exactly what you type on the command line.
You can list BOTH with ALL to change all uppercase and lowercase forms
of the existing character string on one or more lines in the file to a new
character string.