|
|
1.1 root 1: #print
2: Although it is always possible to fix errors by retyping
3: the entire erroneous line with the 'c' command, it is
4: usually much faster to make small changes within
5: a line. The editor allows this with the 's' (substitute)
6: command. For example,
7: s/abc/def/
8: will change a line previously reading
9: xxx abc
10: into one reading
11: xxx def
12: by replacing the string 'abc' in the line with the string 'def'.
13: In this directory is a file 'pres' with one line that says
14: 'harry' where it should say 'george'. Fix it using the
15: substitute command to change 'harry' into 'george'. You
16: should use the 'p' command to print the line before and
17: after, checking that you did it correctly. Then
18: rewrite the file and type 'ready'.
19: #create Ref
20: george washington
21: #create pres
22: harry washington
23: #user
24: #cmp Ref pres
25: #log
26: #next
27: 30.1b 10
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.