Commit | Line | Data |
---|---|---|
fd15fd37 BJ |
1 | |
2 | I hope you have been checking the effects of your | |
3 | substitutions by using the 'p' command before and | |
4 | after the changes. This is so often desired that | |
5 | you may type the 'p' on the same line, after the 's' | |
6 | command. Thus | |
7 | s/ab/cd/p | |
8 | changes 'ab' to 'cd' and prints the line after the change. | |
9 | In this directory there is a file named 'tree'. Try changing | |
10 | the fourth line, which now reads | |
11 | spruxx | |
12 | to read | |
13 | spruce | |
14 | and then rewrite the file, and type 'ready'. | |
15 | #create Ref | |
16 | pine | |
17 | fir | |
18 | hemlock | |
19 | spruce | |
20 | birch | |
21 | beech | |
22 | hickory | |
23 | maple | |
24 | #create tree | |
25 | pine | |
26 | fir | |
27 | hemlock | |
28 | spruxx | |
29 | birch | |
30 | beech | |
31 | hickory | |
32 | maple | |
33 | #user | |
34 | #cmp Ref tree | |
35 | #log | |
36 | #next | |
37 | 32.1a 10 | |
38 | 31.2b 5 |