Bell 32V development
[unix-history] / usr / lib / learn / editor / L15.2a
CommitLineData
fed84c9b
TL
1#print
2So far you have learned how to
3copy and print existing files, and now
4you probably want to know how to add new text
5to a file. The "a" (append) command lets
6you do that. For example, the sequence
7 ed file
8 a
9 A man, a plan, a canal - Panama.
10 .
11 w
12 q
13will append the line
14 A man, a plan, a canal - Panama.
15to the editor buffer, and write it on file "file".
16(If "file" didn't exist already, the editor will
17warn you. It's not an error, just a warning.)
18Try that. Then say "cat file" to check what was written,
19and then type "ready".
20#create Ref
21A man, a plan, a canal - Panama.
22#user
23#cmp file Ref
24#log
25#next
2615.2b 5
2715.3b 2