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