HP NonStop G-Series User Manual
Page 117
![background image](/manuals/397048/117/background.png)
CHANGE Command
EDIT Command Summary
4–38
058061 Tandem Computers Incorporated
Changing Columns to a String
1.
If 19 is the current line number and 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 TOMMY was beat,
17 And TOMMY went 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 1:20 "Tom, Tom" "Thomas" NUM F, "Thomas" NUM F
11 Tom, Tom
19 Tom, Tom
*
Two separate
string-range elements
of the range-specifier
parameter (one does
not modify the other)
EDIT searches the file for the first line that contains
Thomas
and
changes columns 1 through 20 of that line to
Tom, Tom
. EDIT then
searches the file again for the first line that contains
Thomas
and
changes columns 1 through 20 of that line to
Tom, Tom
.