Inserting a Whole File: To combine two files, file 1 work and
file2 work, you would do this:
1.
Enter
command "xedit file 1 work."
Note: The
GET
command inserts another file after the
current line in the file you are editing. Therefore, you
must make current the line after which you want the
data inserted. We'll make the last line current by using
the
BOTTOM command.
2.
Enter
command
"bottom."
3.
Enter
command
"get
file2 work."
The message
EOF
REACHED
means that a copy
of
the
entire file has been inserted
at
the end of "file 1 work." The
last line inserted
is
the new current line.
You copy
"file2 work" when you
GET
it. You do
not
remove it from storage.
Inserting
Part
of a File: To insert part of a file after the
current line, you indicate the line number of the first line and
the number of lines you want to insert
at
the end
of
the
GET
command, like this:
GET
filename
filetype
first-line
number-of-lines
Cancelling Changes to a File
You've made changes to a file,
but
you decide you
don't
want to keep the changes. How can you get rid of the
changes and keep the file as it was originally? That's easy.
Press PF3, which
is
set to the
QUIT
command. (You can also
enter QUIT
on
the command line,
but
pressing
PF3
is
easier.)
The
following message is displayed:
FILE
HAS
BEEN
CHANGED.
USE
QQUIT
TO
QUIT ANYWAY.
If
the file has
been
changed (or is new), the editor gives you
that
warning message
to
see if you really want
to
quit (that
is, not
put
this file
on
disk).
5-22
VM!PC
Users Guide