EasyManua.ls Logo

Commodore PC 20 - Page 305

Commodore PC 20
494 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Examples:
Suppose
the
following file exists and is ready for editing:
1:
Dear
Mr.
Dimm,
2 :
3:
I
was
sorry
to
hear
of
your
recent
4:
hospitalization
due
to
electrical
5:
shock
from
our
X-1000
Automatic
6:
Pencil
Sharpener.
7 :
8:
As
a
result
of
your
accident,
we
9:
are
redesigning
our
manual
to
10:
warn
our
customers
against
trying
11:
to
sharpen
metal
objects.
12
:
13:
Sincerely,
14
:
15:
I.R.
Sharpe,
President
To
search
for
the
first
occurrence
of
the
word
to, type
the
com-
mand
2,12
sto
and press
the
RETURN
key.
Edlin
displays
the
fol-
lowing lines:
3:
I
was
sorry
to
hear
of
your
recent
To
get
the
to in line 4, modify
the
S
command
by
pressing DEL
F3
followed by
the
RETURN
key.
The
search
continues
at
the
line after
the
current
line (Le.,
the
search starts at line 4), because you
deleted
the
first line
number
in the template.
The
result
is:
4:
hospitalization
due
to
electrical
To
search through several
occurrences
of
a
string
until
the
correct
string is found, type
the
command
1,
?
sto
The
result
is:
3:
I
was
sorry
to
hear
of
your
recent
O.K.?
If
you press any key
(except
Y
or
the
RETURN
key),
the
search
continues, so type N here:
O.K.?
n
Continue:
4:
hospitalization
due
to
electrical
O.K.?
Edlin Commands
1671
Searching for a word
in a file

Table of Contents

Related product manuals