Bell 32V development
[unix-history] / usr / lib / learn / editor / L33.1b
CommitLineData
fed84c9b
TL
1#print
2Write the command that will change
3either the word "that" or the word "than"
4into "this", and then print the result. Type
5"answer COMMAND" on a line, where COMMAND is
6that string. (That is, COMMAND
7will be of the form
8 s/.../.../p
9where you have replaced the ... with the right stuff.)
10You can test this out by going into the editor and
11typing in a line that contains "that" and "than"
12and trying to change it. You should do that until you
13are sure you have the command right.
14#copyin
15#user
16#uncopyin
17#match s/tha[nt]/this/p
18#match s/tha[tn]/this/p
19#match s/tha[nt]/this/gp
20#match s/tha[tn]/this/gp
21#log
22#next
2334.1a 10
2434.2a 5