summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/editor/L12.1a
blob: 3d3668c700638851d0496d324d18469905c3434a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#print
Each 'w' command typed so far has written the edited material
back on the same file that it came from originally.
This can be changed by giving a filename on the 'w' command:
  w camden
will write the current editor buffer
on file 'camden'.  What does the following
sequence of commands do?
   ed old
   w new
   q
As you can see, it picks up file 'old', and
writes it on file 'new'.  It has the same effect
as
   cp old new
does.

This directory contains a file
with a name beginning with 'h'.  Make a copy
of that file named 'norman'.  Check the copy
by listing the old and new files with 'cat' before
you type 'ready'.
#create harry
Four score and seven years ago our
fathers brought forth on this continent
a new nation, conceived in liberty and
dedicated to the proposition that
all men are created equal.
#user
#cmp harry norman
#log
#next
12.1b 10