Intel AEDIT-86 Life Jacket User Manual


 
EtiitiDg
Commands AEDIT -86 User's
Guide
3-10
If
you want to return
to
editing the target string, press <
RUBOUT)
with the
cursor on the first position
of
the replacement string.
Press <
ESC)
if
you
are
on
the target string and <
RUBOUT)
if you are on
the first character
of
the replacement string to reedit the target string and the
replacement string as necessary.
Press <
ESC)
while editing the replacement string to terminate editing the
target/replacement strings and to start the replacement process.
To
delete a target string from text, the replacement string must be an empty string.
The
first time
you
request REPLACE, the replacement string
will
be an empty string;
therefore, press <
ESC)
to
enter an empty replacement string and execute the
REPLACE
command.
If
a replacement string from a previous command
is
displayed,
type a character and press < R
UBOUT)
to remove the character. Then press
<
ESC)
a second time
to
enter the empty replacement string and execute the
command.
Operation
of
the
REPLACE
command
is
affected
by
the following attributes (equiv-
alent to the
FIND
command):
Case - consider case
of
Find target
Showfind - list lines
or
multiple finds
K_token - find only token strings
Case, Showfind, and K_token refer to features set using the
SET
command, which
is
described later in this chapter.
Case refers to upper- or lowercase letters.
If
Case
is
no, upper- and lowercase letters
are
equivalent.
If
Showfind
is
yes, each line
that
contains the target string
is
displayed.
The
string
-{
mode}
contains an abbreviation for the features, Case (Cs), Token
(Tk),
and Showfind (Sh).
The
abbreviation
is
displayed only if the specified feature
is set to yes.
If
more than one feature
is
yes, the features are separated with a blank.
To
abort a
REPLACE
command, press <
CTRL-C
) .
The
message "found: count replaced: count"
is
displayed when the command
is
complete.
The
(?)REPLACE
and
(-)FIND
commands share the same target string and each
changes the other's default target.
Count.
The
REPLACE
command accepts any count where count indicates the
number
of
times to replace a target string. Replacement stops after replacing the last
occurrence
of
the target string or count
is
exhausted.
Error.
"not
found: targeLstring"
is
displayed if no match
is
found, and the editor
returns to main command level.
Related Commands.
SET
Case,
SET
K_token,
SET
Showfind
3.
13
?REPLACE Command
The
?REPLACE
command
is
the conditional
REPLACE
command.
3.13.1 Description
Press
?;
AEDIT
-86
prompts-
----
<HOME>
to
re-edlt
? Rep 1 e c e
{mode}
II
targeLstring"