Commit | Line | Data |
---|---|---|
1 | ||
2 | When you want to match one of a few specific characters, | |
3 | and not 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 | ed lines | |
10 | 1,$p | |
11 | 1s/[123]/9/ | |
12 | 2s/[123]/9/ | |
13 | 1,$p | |
14 | w | |
15 | q | |
16 | ready | |
17 | #create Ref | |
18 | 599 | |
19 | 948 | |
20 | #create lines | |
21 | 519 | |
22 | 348 | |
23 | #user | |
24 | #cmp lines Ref | |
25 | #log | |
26 | #next | |
27 | 33.2b 5 |