NBSpool for MPE Reference Guide
Chapter 3
3-76
REDO
The
REDO
command allows a prior command to be modified and reexecuted. To repeat the last
command simply type
REDO
at the NBSpool prompt, modify the line using standard
EDITOR
commands, and enter a carriage return to execute the command. The
REDO
command can also be
used with the
LISTREDO
command as described below. Turn to the “LISTREDO” section in this
chapter for more information.
REDO Syntax
O> REDO [cmdid]
REDO Parameters
Parameter Description
cmdid
This parameter specifies the command to execute. The command may be
specified by its relative or absolute order in the command line history stack,
or by name (as a string).
(omitted) Previous command (same as
Redo -1
)
-n The nth command before the most recent one.
N
is a number in
the command line stack relative to the most recent command,
which is
-1
.
M Command number m in the command line stack. The number
m
is absolute (not relative).
String The most recent command beginning with string. The
default is
-1
, the most recent command.
NBSpool detects an error if you specify a
cmdid
that cannot be found in the
history stack.
The following
directives effect
the current line:
i<text>
INSERT
. Inserts
<text>
at the position to the left of the
i
.
r<text>
REPLACE
. Uses
<text>
to perform a one-for-one character replacement
beginning at the position of the
r
.
Continued