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