|
|
1.1 root 1: #print
2: After the global command has selected the lines
3: to which the second command is to be applied, it sets '.' (the
4: current line) to each of these lines in turn as it executes
5: the controlled command. Thus you can reference the line
6: before or after the selected line. For example,
7: g/xx/.-1s/ab/cd/
8: changes 'ab' to 'cd' on the line BEFORE each line with xx.
9: And
10: g/xx/$t.+1
11: inserts a copy of the last line in the file two lines
12: after each line with 'xx' on it.
13: In this directory, the file 'memo' has paragraphs indicated
14: by lines beginning ".PP". Add two blanks to the beginning of
15: the line after each ".PP", and then delete the ".PP" lines.
16: This should take only two commands. Rewrite the file and then
17: type "ready".
18: #create Ref
19: The Ascent of the Riffelberg
20: by Mark Twain
21:
22: I sat silent some time, then turned to Harris and said:
23: ``My mind is made up.''
24: Something in my tone struck him; and when he glanced
25: at my eye and read what was written there, his face paled
26: perceptibly. He hesitated a moment, then said:
27: ``Speak.''
28: I answered, with perfect calmness:
29: ``I WILL ASCEND THE RIFFELBERG.''
30: If I had shot my poor friend he could not have fallen from
31: his chair more suddenly. If I had been his father he
32: could not have pleaded harder to get me to give up my
33: purpose. But I turned a deaf ear to all he said. When he
34: perceived at last that nothing could alter my determination,
35: he ceased to urge, and for a while the deep silence was broken only
36: by his sobs. I sat in marble resolution, with my
37: eyes fixed upon vacancy, for in spirit I was already
38: wrestling with the perils of the mountains, and my friend sat
39: gazing at me in adoring admiration through his tears. At
40: last he threw himself upon me in a loving embrace and
41: exclaimed in broken tones:
42: ``Your Harris will never desert you. We will die together!''
43: I cheered the noble fellow with praises, and soon his fears
44: were forgotten and he was eager for the adventure. He
45: wanted to summon the guides at once and leave at two in
46: the morning, as he supposed the custom was; but I explained that nobody
47: was looking at that hour; and that the start in the dark
48: was not usually made from the village but
49: from the first night's resting-place on the mountainside. I
50: said we would leave the village at 3 or 4 p.m. on the morrow;
51: meantime he could notify the guides, and also let the public
52: know of the attempt which we proposed to make.
53: I went to bed, but not to sleep. No man can sleep when
54: he is about to undertake one of these Alpine exploits. I
55: tossed feverishly all night long, and was glad enough when
56: I heard the clock strike half past eleven and knew it was
57: time to get up for dinner.
58: #create memo
59: The Ascent of the Riffelberg
60: by Mark Twain
61:
62: .PP
63: I sat silent some time, then turned to Harris and said:
64: ``My mind is made up.''
65: Something in my tone struck him; and when he glanced
66: at my eye and read what was written there, his face paled
67: perceptibly. He hesitated a moment, then said:
68: ``Speak.''
69: .PP
70: I answered, with perfect calmness:
71: ``I WILL ASCEND THE RIFFELBERG.''
72: .PP
73: If I had shot my poor friend he could not have fallen from
74: his chair more suddenly. If I had been his father he
75: could not have pleaded harder to get me to give up my
76: purpose. But I turned a deaf ear to all he said. When he
77: perceived at last that nothing could alter my determination,
78: he ceased to urge, and for a while the deep silence was broken only
79: by his sobs. I sat in marble resolution, with my
80: eyes fixed upon vacancy, for in spirit I was already
81: wrestling with the perils of the mountains, and my friend sat
82: gazing at me in adoring admiration through his tears. At
83: last he threw himself upon me in a loving embrace and
84: exclaimed in broken tones:
85: ``Your Harris will never desert you. We will die together!''
86: .PP
87: I cheered the noble fellow with praises, and soon his fears
88: were forgotten and he was eager for the adventure. He
89: wanted to summon the guides at once and leave at two in
90: the morning, as he supposed the custom was; but I explained that nobody
91: was looking at that hour; and that the start in the dark
92: was not usually made from the village but
93: from the first night's resting-place on the mountainside. I
94: said we would leave the village at 3 or 4 p.m. on the morrow;
95: meantime he could notify the guides, and also let the public
96: know of the attempt which we proposed to make.
97: .PP
98: I went to bed, but not to sleep. No man can sleep when
99: he is about to undertake one of these Alpine exploits. I
100: tossed feverishly all night long, and was glad enough when
101: I heard the clock strike half past eleven and knew it was
102: time to get up for dinner.
103: #user
104: #cmp memo Ref
105: #log
106: #next
107: 72.1a 10
108: 72.2a 5
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.