Bell 32V development
[unix-history] / usr / lib / learn / editor / L12.2a
CommitLineData
fed84c9b
TL
1#print
2Each 'w' command typed so far has written the edited material
3back on the same file that it came from originally.
4This can be changed by giving a filename on the 'w' command:
5 w camden
6will write the current editor buffer
7on file 'camden'. What does the following
8sequence of commands do?
9 ed old
10 w new
11 q
12As you can see, it picks up file 'old', and
13writes it on file 'new'. It has the same effect
14as
15 cp old new
16does.
17
18In this directory there is a file named "old".
19Copy that file to file "new" with the editor, using
20the commands given above. Check by printing
21both files with "cat" that they are the same.
22Type "ready" when done.
23#create Ref
24Four score and seven years ago our
25fathers brought forth on this continent
26a new nation, conceived in liberty and
27dedicated to the proposition that
28all men are created equal.
29#create old
30Four score and seven years ago our
31fathers brought forth on this continent
32a new nation, conceived in liberty and
33dedicated to the proposition that
34all men are created equal.
35#user
36#cmp old new
37#log
38#next
3912.2b 5