beautypg.com

Edit command summary, Typing several commands on one line – HP NonStop G-Series User Manual

Page 86

background image

Typing Several Commands on One Line

EDIT Command Summary

058061 Tandem Computers Incorporated

4–7

You can use the EDIT program to create a command file as follows:

6> EDIT INDEX

TEXT EDITOR - T9601B30 - (08MAR87)

$WORK.TASK.INDEX DOES NOT EXIST. SHALL I CREATE IT? yes

*ADD 1

1 * create BIGMESS and

2 * make it the current file

3 RETURN

4 RETURN

5 GET BIGMESS!

6 RETURN

7 RETURN

8 * copy TEMP1 to end of BIGMESS

9 RETURN

10 GET TEMP1 TO LAST

11 RETURN

12 * copy TEMP2 to end of BIGMESS

13 RETURN

14 GET TEMP2 TO LAST

15 RETURN

16 * modify BIGMESS so that the characters

17 * CMIOP appear in columns 121 through 125

18 RETURN

19 CHANGE QUIET 121:125 "CMIOP" ALL

20 RETURN

21 * list BIGMESS without lines numbers to $S.#LP

22 RETURN

23 LIST UNSEQ OUT $S.#LP ALL

24 RETURN

25 * stop the EDIT program

26 RETURN

27 EXIT

28 //

*EXIT

7>

This is an editor command.

It does NOT begin with *

Starts adding text

at line number 1

Starts EDIT and

creates INDEX

This is a comment line.

It MUST begin with *

Now that you have created the command file named INDEX, run EDIT
noninteractively by typing this command:

8 EDIT/IN INDEX, OUT $S.#LP, NOWAIT/

9

This manual is related to the following products: