|
|
1.1 root 1: #print
2: Even more powerful is to use two context
3: searches for the pair of addresses
4: in front of a command. For example
5: /abc/,/def/p
6: will print all lines from the one that
7: contains "abc" to the one that contains
8: "def". In this directory is a file
9: "phone". On every line between
10: "Pinson" and "Johnson" change "tel" to "ext".
11: (Again, print the whole file first to see
12: what's going on here and why the file is bad.)
13: Then rewrite the corrected file and
14: type "ready".
15: #create Ref
16: telephone numbers
17:
18: McIlroy M D ext 6050
19: Aho A V ext 4862
20: Baker B S ext 6503
21: Cherry L L ext 6067
22: Knowlton K ext 2328
23: Morris R ext 3878
24: Ossanna J F ext 3520
25: Thompson K ext 2394
26:
27: Pinson E N ext 2582
28: Bourne S R ext 7419
29: Elliot R J ext 2879
30: Fraser A G ext 3685
31: Johnson S C ext 3968
32: Kernighan B W ext 6021
33: Ritchie D M ext 3770
34: Vollaro J R ext 6321
35: #create phone
36: telephone numbers
37:
38: McIlroy M D ext 6050
39: Aho A V ext 4862
40: Baker B S ext 6503
41: Cherry L L ext 6067
42: Knowlton K ext 2328
43: Morris R ext 3878
44: Ossanna J F ext 3520
45: Thompson K ext 2394
46:
47: Pinson E N tel 2582
48: Bourne S R tel 7419
49: Elliot R J tel 2879
50: Fraser A G tel 3685
51: Johnson S C tel 3968
52: Kernighan B W ext 6021
53: Ritchie D M ext 3770
54: Vollaro J R ext 6321
55: #user
56: #cmp phone Ref
57: #log
58: #next
59: 53.1a 10
60: 52.2c 5
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.