beautypg.com

HP NonStop G-Series User Manual

Page 168

background image

OBEY Command

EDIT Command Summary

058061 Tandem Computers Incorporated

4–89

If you include an OBEY command in an EDIT command line, EDIT
executes all the other commands in the command line before executing
the OBEY file. For example, the following command line:

24> EDIT EXAMPLE; OBEY TABS; SET JOIN 65; NUMBER ALL

Starts EDIT on the file named EXAMPLE

Sets the default join width to 65 characters

Renumbers all line numbers in the file EXAMPLE starting at 1

EDIT executes these three commands first without obeying the file
named TABS. Then, when you press \(key(RETURN)\), EDIT executes
the OBEY TABS command. (Compare this with Example 1, following,
which illustrates each command entered separately.)

You should only include one OBEY command in an EDIT command
line. If you do include more than one, EDIT will only execute the last
OBEY command in the command line. (See Example 3, following.)

Examples

1.

If the command file named TABS contains the line:

1 SET TABS 15 30 55

these three commands, typed on separate lines,

25> EDIT EXAMPLE

*OBEY TABS

*SET JOIN 65

start the EDIT program on the file named EXAMPLE, executes the
commands in the file named TABS, and sets the join width to 65,
respectively.

This manual is related to the following products: