Edlin Commands 165
In the previous example, some unwanted changes occurred. To
avoid these and to confirm each replacement, you can use the
same file with a slightly different command.
maa:ra_BE^^
In the next example you will see how to replace only certain
Replacing text
occurrences of our with the. At the edlin prompt, type the fol-
selectively
lowing sequence of keys and words, and then press the return
key:
1,15?
r o u r
control-z
the
The result is:
5:
shock
from
the
X-10 0 0
Automatic
O.K.?
y
8:
As
a
result
of
ythe
accident,
we
O.K.?
n
9:
are
redesigning
the
manual
to
O.K.?
y
10:
warn
the
customers
aqainst
tryinq
O.K.? n
y
y
y
/—s
Type the list command, L, to see the result of all these changes:
(~*)
5:
shock from the X-1000 Automatic
n8:
As
a
result
of
your
accident,
we
9:
are
redesigning
the
manual
to
10:
warn
our
customers
against
trying
n