beautypg.com

HP NonStop G-Series User Manual

Page 138

background image

GET Command

EDIT Command Summary

058061 Tandem Computers Incorporated

4–59

The syntax of the GET command to accomplish the second through fifth
items mentioned above is:

GET filename1 [ { line-range-list } ]

[ { NUM ordinal-range-list } ]

[ { PUT filename2 [ ! ] } ]

[ { TO { line [ BY incr ] } } ]

[ { { SAME [ KEEP ] } } ]

filename1

is the name of an EDIT file, the name of a nondisk device, or the name
of a non-EDIT-format disk file. The GET command accepts a full or a
partial file name. (See “How EDIT Files Are Named” in Section 6 for
information on file names.)

READ

tells the EDIT program to open

filename1

with read-only access. If

you specify READ, the EDIT program rejects any command that
attempts to write to

filename1

(for example, ADD or FIX). You

cannot specify READ if you specify the ! character.

!

tells the EDIT program to get

filename1

and to create it if it doesn’t

exist. EDIT doesn’t prompt you with a confirmation message. If you
specify !, you cannot specify any of the other optional parameters.

line-range-list

references one or more contiguous lines or blocks of text in an EDIT file.
Turn to “Line-Range-List Parameter” in Section 5 for a full explanation
of this range.

This manual is related to the following products: