Bell 32V development
[unix-history] / usr / lib / learn / editor / L20.1a
CommitLineData
fed84c9b
TL
1#print
2You can now change a line of a file, using only the
3commands already taught, by deleting the old line
4and inserting a new one.
5This is not a very convenient way to do that, so
6there is a command 'c' (change) which combines
7those operations.
8 5c
9 input text
10 here.
11 .
12will delete line 5 and replace it by the lines
13
14input text
15here.
16
17Note that the text following 'c', just like the text
18after 'i' and 'a', must end with a line containing just
19one '.' and nothing else.
20This directory contains a file named 'short'
21with six lines in it. Change the last line to read
22
23new version of last line
24
25and rewrite the file; then end with "ready".
26#create Ref
27This is a short file
28which contains exactly
29six lines of text
30of which you are
31to change the last line
32new version of last line
33#create short
34This is a short file
35which contains exactly
36six lines of text
37of which you are
38to change the last line
39this is the last line.
40#pipe
41#user
42#unpipe
43#cmp Ref short
44#log
45#next
4621.1a 10