beautypg.com

HP NonStop G-Series User Manual

Page 142

background image

GET Command

EDIT Command Summary

058061 Tandem Computers Incorporated

4–63

4.

The command:

*GET SHAKE 20/100

NAME THE NEW FILE: LYRIC

CURRENT FILE IS $WORK.FICTION.LYRIC

*

omits the PUT keyword, and EDIT prompts for a file name. You name
the new file LYRIC. LYRIC becomes the current file. Lines 20 through
100 are copied into LYRIC.

If you do not name the new file (if you press

BREAK

,

RETURN

, or type

CTRL-Y at the prompt), EDIT creates a temporary current file. EDIT
deletes the temporary file when you exit EDIT or when you make
another EDIT file the current file.

If the file name that you specify with the PUT keyword already exists,
EDIT asks if it should purge the existing file. If you reply “yes” or “y”,
EDIT purges the existing file, creates a new file, and copies text into the
new file. For example, if the file named FABLE already exists, then the
GET command prompts a response from EDIT:

*GET AESOP 10/20 PUT FABLE
SHALL I PURGE THE OLD $SYSTEM.USER.FABLE? yes
CURRENT FILE IS $SYSTEM.USER.FABLE
*

EDIT is doublechecking

your PUT command when

it returns this message.

Your “yes” reply causes EDIT to purge the existing file named FABLE
and create a new file named FABLE. EDIT copies lines 10 through 20 of
AESOP into FABLE and makes FABLE the current file.

This manual is related to the following products: