BSD 3 development
[unix-history] / usr / lib / learn / editor / L12.1a
CommitLineData
fd15fd37
BJ
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
18This directory contains a file
19with a name beginning with 'h'. Make a copy
20of that file named 'norman'. Check the copy
21by listing the old and new files with 'cat' before
22you type 'ready'.
23#create harry
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#user
30#cmp harry norman
31#log
32#next
3312.1b 10