r
I
!
I
~
r--
I
i
I
I
!
Chapter 10 /
EDLIN
Command Reference
• Begin
the
search
string
immediately after the S
in
the
com-
mand line. End
it
by pressing I
ENTER
I.
Any spaces you include
are
considered
part
of the search
string
.
•
In
multiple
line
commands,
terminate
the
string
with
I
CTRL
1m,
instead of I
ENTER
I.
You
may then
follow
the
string
with
another command,
in
the next character position.
Examples
Assume
that
the following file exists and is ready to be edited.
Line 5 is the current line.
1:
This
sample
file
2:
shows
how
the
Search
command
functions
3:
to
locate
and
point
out
4:
a
specified
string
5:*in
a
range
of
lines
6:
of
your
file.
7:
The
Search
command
8:
may
include
the
optional
parameter?
and
9:
2
line
parameters
for
the
range.
1
~:
You
the
n t y
pet
h
est
r i ng
and
pre
s s I
ENTER
I
To
search
for
the
first occurrence of the
string
and, type:
1 , 1
~
San
dI
ENTER
I
The screen shows:
2:
shows
how
the
Search
command
functions
*
because the
string
and is
part
of the word command, Line 2 then
becomes the current line.
This is probably not the and you
are
looking
for.
To
find the next
occurrence of and,
at
the EDLIN prompt, type:
S
(ENTER
I
231