Commit | Line | Data |
---|---|---|
fed84c9b TL |
1 | |
2 | A particularly important editor command | |
3 | is 'w' (write). This writes whatever | |
4 | you are working on, including everything you | |
5 | have typed in or changed, into a file, | |
6 | so that you can work on it again later. | |
7 | If you try to quit from the editor without | |
8 | writing out your changes, the editor will complain | |
9 | (but only once -- a second 'q' will let you out). | |
10 | Generally it's wisest to leave the editor by typing | |
11 | ||
12 | w | |
13 | q | |
14 | ||
15 | rather than just 'q'. I'll put you in the editor; | |
16 | type those two commands to leave. Then type | |
17 | "ready". | |
18 | #create bpres | |
19 | Washington Adams Jefferson | |
20 | #create pres | |
21 | Washington Adams Jefferson | |
22 | #pipe | |
23 | ed pres | |
24 | #user | |
25 | #unpipe | |
26 | #cmp pres bpres | |
27 | #succeed | |
28 | Note that the editor typed 27. This is the number | |
29 | of characters it wrote into the file. This | |
30 | is reassuring - it tells you the write was | |
31 | successful. The count of characters read | |
32 | is also typed, which is why you got a '27' | |
33 | before your responses. | |
34 | #log | |
35 | #next | |
36 | 4.1a 10 | |
37 | 4.2a 5 |