beautypg.com

HP NonStop G-Series User Manual

Page 83

background image

Typing Several Commands on One Line

EDIT Command Summary

4–4

058061 Tandem Computers Incorporated

Typing Several Commands

on One Line

As you become familiar with the individual commands of the EDIT
program, you can learn to edit more efficiently by typing several
commands in the same command line. You supply the commands all at
once, and EDIT completes them in sequential order. When you do this, you
must separate the individual commands with semicolons. For example:

4> EDIT BEN;DELETE 1 2;JOIN ALL WIDTH 39;EXIT
TEXT EDITOR - T9601B30 - (08MAR87)
CURRENT FILE IS $WORK.FICTION.BEN
1 A little neglect
2 may breed mischief:
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;
5>

Starts EDIT on the

file named BEN

Exits EDIT and returns to

the command interpreter

Deletes lines 1 and 2

Joins all lines

to width 39

Note

When you include an OBEY command in an EDIT command line, the EDIT program
executes all the other commands in the command line before executing the OBEY
command. See the OBEY command description, later in this section, for details.

Running the EDIT Program

Noninteractively

When you run the EDIT program noninteractively, you free your terminal
for other operations. Before you can use the EDIT program
noninteractively, however, you must create a command file. (See
Example 1, following.) This command file communicates with the EDIT
program for you.

This manual is related to the following products: