BSD 4_1_snap development
[unix-history] / usr / lib / learn / editor / L72.1a
CommitLineData
3eb5d546
C
1#print
2A command related to the global command is the 'v' command.
3It also selects lines on which a second command is executed; the
4difference between 'g' and 'v' is that the selected lines
5for the 'v' command are all those on which the expression
6is NOT found. Thus
7 v/abc/s/x/y/g
8changes 'x' to 'y' on all lines NOT containing an 'abc'.
9There is a file 'price' in this directory. Find all lines
10that do NOT begin with blank and prefix three asterisks
11to them. Then rewrite the file and type "ready".
12#create Ref
13***beef
14 shoulder 1.39/lb
15 flank 1.59/lb
16 sirloin 2.19/lb
17 round 1.89/lb
18***fish
19 sword 3.99/lb
20 cod 1.99/lb
21 blues 2.49/lb
22 stripers 3.49/lb
23 flounder 2.99/lb
24***pork
25 shoulder .89/lb
26 loin 1.59/lb
27 bacon 1.19/lb
28#create price
29beef
30 shoulder 1.39/lb
31 flank 1.59/lb
32 sirloin 2.19/lb
33 round 1.89/lb
34fish
35 sword 3.99/lb
36 cod 1.99/lb
37 blues 2.49/lb
38 stripers 3.49/lb
39 flounder 2.99/lb
40pork
41 shoulder .89/lb
42 loin 1.59/lb
43 bacon 1.19/lb
44#user
45#cmp price Ref
46#log
47#next
4873.1a 10