blob: c1fb03921650b470edaa42f19ea73cff5e98a34c (
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
37
38
39
40
41
42
43
44
45
46
47
48
|
#print
A command related to the global command is the 'v' command.
It also selects lines on which a second command is executed; the
difference between 'g' and 'v' is that the selected lines
for the 'v' command are all those on which the expression
is NOT found. Thus
v/abc/s/x/y/g
changes 'x' to 'y' on all lines NOT containing an 'abc'.
There is a file 'price' in this directory. Find all lines
that do NOT begin with blank and prefix three asterisks
to them. Then rewrite the file and type "ready".
#create Ref
***beef
shoulder 1.39/lb
flank 1.59/lb
sirloin 2.19/lb
round 1.89/lb
***fish
sword 3.99/lb
cod 1.99/lb
blues 2.49/lb
stripers 3.49/lb
flounder 2.99/lb
***pork
shoulder .89/lb
loin 1.59/lb
bacon 1.19/lb
#create price
beef
shoulder 1.39/lb
flank 1.59/lb
sirloin 2.19/lb
round 1.89/lb
fish
sword 3.99/lb
cod 1.99/lb
blues 2.49/lb
stripers 3.49/lb
flounder 2.99/lb
pork
shoulder .89/lb
loin 1.59/lb
bacon 1.19/lb
#user
#cmp price Ref
#log
#next
73.1a 10
|