Edit command summary – HP NonStop G-Series User Manual

Page 82

Advertising
background image

Typing Several Commands on One Line

EDIT Command Summary

058061 Tandem Computers Incorporated

4–3

Example

Suppose an EDIT file named BEN contains the following lines:

1 A little neglect

2 may breed mischief:

3 for want of a nail

4 the shoe was lost;

5 for want of a shoe

6 the horse was lost;

7 for want of a horse

8 the rider was lost.

You can edit this file by going through the EDIT program command
execution cycle:

Start the EDIT program

Enter an editor command at the EDIT prompt

Wait for the command to execute

Continue to enter an editor command at the EDIT prompt until you exit
from the EDIT program

For example:

2> EDIT BEN
TEXT EDITOR - T9601B30 - (08MAR87)
CURRENT FILE IS $WORK.FICTION.BEN
*DELETE 1 2
1 A little neglect
2 may breed mischief:
*JOIN ALL WIDTH 39
3 for want of a nail the shoe was lost;
5 for want of a shoe the horse was lost;
7 for want of a horse the rider was lost;
*EXIT
3>

Deletes lines 1 and 2,

prompts for command

Starts EDIT on file

named BEN, prompts

for command

Joins all lines to width 39,

prompts for command

Exits EDIT and returns to

the command interpreter

Advertising
This manual is related to the following products: