HP NonStop G-Series User Manual
Page 55
![background image](/manuals/397048/55/background.png)
Using Keywords With the CHANGE Command
Revising Text in Your File
3–12
058061 Tandem Computers Incorporated
You can use the CHANGE command to modify text in one line or a range of
lines. For example, to change the first occurrence of be to be agile and in line
numbers 1 and 1.1:
*CHANGE "be"be agile and" 1 1.1
1 Jack be agile and nimble
1.1 Jack be agile and quick
*
To change Jack to Peter in every line in the file, use ALL as your range of
lines with the CHANGE command line:
*CHANGE "Jack"Peter" ALL
1 Peter be agile and nimble
1.1 Peter be agile and quick
1.2 Peter jump over the candlestick.
*
Using Keywords With the
CHANGE Command
You can use several keywords with the CHANGE command. One of these
keywords is ALL (not to be confused with the range ALL). The keyword
ALL tells EDIT to change all occurrences of a specified character string to a
new string. Without ALL, EDIT changes just the first occurrence of a
character string it finds in a line.