The get command: copying another file to your file – HP NonStop G-Series User Manual
Page 71
![background image](/manuals/397048/71/background.png)
The GET Command: Copying Another File to Your File
Revising Text in Your File
3–28
058061 Tandem Computers Incorporated
The GET Command:
Copying Another File
to Your File
When you use the GET command, you have access to EDIT files other than
the one you are in currently. Use the GET command to:
Copy a portion of another file into your current file
Copy another entire file into your current file
Copying Part of a File Into
Your File
Suppose that you have an EDIT file named CLIENTS which contains a list
of names you need to add to a memo you are writing. To copy the text on
line numbers 3 and 4 of CLIENTS into your current file (in this example,
BIZMEMO) at line number 20, type:
*GET CLIENTS 3/4 TO 20
LAST NEW LINE IS 21 <- 4
CURRENT FILE IS $WORK.TUTOR.BIZMEMO
*
Note
At this point, if you forget to include TO and a line location, EDIT gets the specified lines of
CLIENTS, closes the current file, and places the lines in a new file it creates. EDIT then
prompts you to name the new file. You’re no longer in BIZMEMO.
When you use the GET command to copy text into your file, it does not list
the lines after it copies them. It does, however, tell you that:
Line number 4 from CLIENTS is the last line added to BIZMEMO.
Line number 4 from CLIENTS is now line number 21 in BIZMEMO.
The current file is still $WORK.TUTOR.BIZMEMO.