beautypg.com

Tpsec04, 4 edit command summary – HP NonStop G-Series User Manual

Page 80

background image

4 EDIT Command Summary

058061 Tandem Computers Incorporated

4–1

Running the EDIT

Program

To run the EDIT program, you type EDIT at the command interpreter
prompt character. You can run the EDIT program in either interactive or
noninteractive mode. Interactive mode requires you to respond at the EDIT
prompt after EDIT executes each command. Noninteractive mode means
that EDIT executes commands from a command file while allowing you to
use the terminal in the meanwhile. The EDIT program can read from and
write to disk files, nondisk devices, and processes (as illustrated in
Figure 2).

Running the EDIT Program

Interactively

To run the EDIT program interactively, use the following EDIT command
syntax:

EDIT [ filename ] [ ! ] [ [ ;editorcommand ] ... ]

filename

is the name of an existing EDIT file or is the name of a new EDIT file
that you want to create. You can give a full file name or a partial file
name. (See “How EDIT Files Are Named” in Section 6 for details.) If

filename

names a new file, the EDIT program asks you if it should

create the file. If you do not give a

filename

, the EDIT program

prompts you for one. (See “Adding Text to a New EDIT File” of the
ADD command, later in this section.)

!

tells the EDIT program to create an EDIT file named

filename

, if

filename

does not already exist.

editorcommand

is an editor command.

This manual is related to the following products: