|
|
1.1 root 1: #print
2: When you want to match one of a few specific characters,
3: and not just anything, the pattern is similar to that used in
4: file names. That is,
5: [abc]
6: matches the letters 'a', 'b', or 'c', but nothing
7: else. Try this sequence and note what happens:
8:
9: ex lines
10: 1,$p
11: 1s/[123]/9/
12: 2s/[123]/9/
13: 1,$p
14: wq
15: ready
16:
17: (Remember that you can use '%' to abbreviate '1,$p'.)
18: #create Ref
19: 599
20: 948
21: #create lines
22: 519
23: 348
24: #user
25: #cmp lines Ref
26: #log
27: #next
28: 33.2b 5
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.