BSD 3 development
[unix-history] / usr / lib / learn / editor / L42.2a
CommitLineData
fd15fd37
BJ
1#print
2Normally the 's' command only changes the first instance
3on a line of the expression it is recognizing. Sometimes you want
4to change everything. For example, try the following sequence,
5and note the difference between the changes on the two lines.
6
7ed test
81,2p
91s/cat/cats/p
102s/cat/cats/gp
11w
12q
13ready
14#create Ref
15the cats in the catalog is a persian cat
16the cats in the catsalog is a persian cats
17#create test
18the cat in the catalog is a persian cat
19the cat in the catalog is a persian cat
20#user
21#cmp test Ref
22#log
23#next
2442.2b 5