|
|
1.1 root 1: #print
2: Normally the 's' command only changes the first instance
3: on a line of the expression it is recognizing. Sometimes you want
4: to change everything. For example, try the following sequence,
5: and note the difference between the changes on the two lines.
6:
7: ex test
8: 1,2p
9: 1s/cat/cats/p
10: 2s/cat/cats/gp
11: wq
12: ready
13: #create Ref
14: the cats in the catalog is a persian cat
15: the cats in the catsalog is a persian cats
16: #create test
17: the cat in the catalog is a persian cat
18: the cat in the catalog is a persian cat
19: #user
20: #cmp test Ref
21: #log
22: #next
23: 42.2b 5
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.