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