Commit | Line | Data |
---|---|---|
fd15fd37 BJ |
1 | |
2 | There is an easier way to do that. You can just say | |
3 | 5c | |
4 | input text for new version | |
5 | . | |
6 | using the 'c' command ('c' stands for 'change') which | |
7 | will delete the old version of the line and | |
8 | replace it. Note that the input text after 'c' ends | |
9 | with a '.' just like the text after the 'a' or 'i' commands. | |
10 | This directory contains a file named "lineup". Change | |
11 | the third line to read "neal walk" and print the file | |
12 | before and after. Use a sequence like this, ending in ready: | |
13 | ||
14 | ed lineup | |
15 | 1,$p | |
16 | 3c | |
17 | neal walk | |
18 | . | |
19 | 1,$p | |
20 | w | |
21 | q | |
22 | ready | |
23 | ||
24 | #create Ref | |
25 | walt frazier | |
26 | earl monroe | |
27 | neal walk | |
28 | bill bradley | |
29 | spencer haywood | |
30 | #create lineup | |
31 | walt frazier | |
32 | earl monroe | |
33 | john gianelli | |
34 | bill bradley | |
35 | spencer haywood | |
36 | #user | |
37 | #cmp lineup Ref | |
38 | #log | |
39 | #next | |
40 | 20.2c 5 |