AEDIT
-86 User's Guide
Editing Commands
Count.
The
FIND
command accepts any count where count indicates
the
number
of
times
to
search for a
target
string.
The
search stops
after
the last occurrence
of
the
target
string
is
found
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. 11 -FIND Command
The
-FIND
command
is
identical
to
the
FIND
command with the following excep-
tions:
•
-FIND
searches backward from the current cursor position to the beginning
of
the
file.
•
The
Showfind option
is
ignored.
•
The
cursor is positioned on the first
character
of
the matched string.
3. 11. 1 Description
Press
-;
AEDIT-86
prompts-
----
<HOME)
to
re-edit
-
fin
d { mode}
It
targeLstring
lt
The
last
target
string
(if
any)
is
displayed
in
the quotation marks.
Related Commands.
SET
Case,
SET
K_token
3.
12
REPLACE Command
The
REPLACE
command
is
similar to the
FIND
command except
that
it
allows you
to replace the old
target
string with a new string.
The
REPLACE
command also
allows you to delete a
target
string.
3. 12. 1 Description
Press R;
AEDIT-86
prompts-
----
<HOME)
to
re-edit
Rep
1
IS
C e {
mode}
••
targeLstring ..
The last target string
(if
any)
is
displayed within the quotation marks.
The
prompt line contains two line-edited argument. You may edit either or both of
them
in
the
following ways:
• Press <
HOME)
to enter the reedit mode; to enter a new target string simply
type the new string.
• Press <
ESC)
to terminate editing the target string and
start
editing the
replacement string;
AEDIT-86
prompts-
----
<HOME)
to
re-edit
Rep
1
IS
C e { mode}
II
targeLstring
It
wit
h
.1
replacemenLstring
II
3-9