Commit | Line | Data |
---|---|---|
3eb5d546 C |
1 | |
2 | You can use '*' to look for a string of characters | |
3 | from one of the character classes. Suppose, for example, | |
4 | we wanted a long string of either 'a' or 'b', followed | |
5 | by 'x'. Then we could write | |
6 | ||
7 | s/[ab]*x/.../ | |
8 | ||
9 | In this directory is a file named "table". | |
10 | It has only one line. On that line, replace all the digits | |
11 | followed by a comma with the letters "too big". For example, | |
12 | "123,000" should become "too big,000". | |
13 | Then rewrite the file and type "readY". | |
14 | #create Ref | |
15 | Heathrow too big,159 | |
16 | #create table | |
17 | Heathrow 17073,159 | |
18 | #user | |
19 | #cmp table Ref | |
20 | #log | |
21 | #next | |
22 | 35.2d 5 |