|
|
1.1 root 1: #print
2: So far you have always appended to an empty file,
3: so that there was no problem about where the appended lines
4: were placed in the file. If the file you're appending to
5: already has lines in it, you can say where you want the
6: new material to be placed by giving a line address with 'a',
7: and you can check on this by printing the file.
8: Try the following sequence and note what happens to the new lines
9: that are added with the "3a" command:
10:
11: ex rivers
12: 1,$p
13: 3a
14: merrimack
15: connecticut
16: hudson
17: .
18: 1,$p
19: wq
20: ready
21: #create Ref
22: penobscot
23: androscoggin
24: kennebec
25: merrimack
26: connecticut
27: hudson
28: delaware
29: susquehanna
30: #create rivers
31: penobscot
32: androscoggin
33: kennebec
34: delaware
35: susquehanna
36: #user
37: #cmp rivers Ref
38: #log
39: #next
40: 16.2c 5
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.