summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/editor/L20.2a
blob: 58ba72f3e65c0518846e10306f6400fe120402db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#print
You can now change a line of a file by a slow procedure: delete the
old version and insert the new one.  For example, you could replace
line 4 of a file with
   4d
   3a
   new version of line 4
   .
right?  OK, try that.  There is a file named "words" in this
directory and line 4 contains a mistyped word.  Correct it and
rewrite the file; then type "ready".
#create Ref
bear
begin
belief
believe
belt
bend
#create words
bear
begin
belief
beleive
belt
bend
#user
#cmp words Ref
#log
#next
20.2b 5