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