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