Commit | Line | Data |
---|---|---|
00b28f22 TL |
1 | |
2 | Note that the // searches always go forward. | |
3 | Sometimes you want to go backward, to find | |
4 | some expression on a line before the | |
5 | one you are now working on. | |
6 | In that case you can search with a command like | |
7 | ?abc?p | |
8 | which prints the nearest preceding line which | |
9 | contains 'abc'. What command would print | |
10 | the nearest previous line that ends in "cat"? | |
11 | Type "answer COMMAND" when you figure it out. | |
12 | #copyin | |
13 | #user | |
14 | #uncopyin | |
15 | #match ?cat$?p | |
16 | The "p" isn't needed, but use it if you like too. | |
17 | #match ?cat$? | |
18 | #cmp X1 X2 | |
19 | #log | |
20 | #next | |
21 | 54.1a 10 | |
22 | 53.2b 7 |