Commit | Line | Data |
---|---|---|
fd15fd37 BJ |
1 | |
2 | You can also use "-" in addresses. | |
3 | For example, you can print the | |
4 | line before the current line with | |
5 | .-1p | |
6 | as a command. Again, I'll put | |
7 | you in the editor; print the fifth | |
8 | line and then the fourth, using this | |
9 | command to print lines in reverse | |
10 | order. Then leave with w, q, and ready. | |
11 | #create Ref | |
12 | carrots | |
13 | squash | |
14 | 83 | |
15 | #create file | |
16 | broccoli | |
17 | mushrooms | |
18 | cauliflower | |
19 | squash | |
20 | carrots | |
21 | lettuce | |
22 | string beans | |
23 | peas | |
24 | lima beans | |
25 | #copyout | |
26 | #pipe | |
27 | ed file | |
28 | #user | |
29 | #unpipe | |
30 | #uncopyout | |
31 | tail -3 .ocopy >X1 | |
32 | #cmp Ref X1 | |
33 | #log | |
34 | #next | |
35 | 9.1a 10 | |
36 | 9.2a 5 |