EasyManua.ls Logo

Commodore PC 20 - Page 278

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...
\140
MS-DOS User's Reference
Some Tips for Using Edlin Commands
Once
you have
started
editing a file
with
edlin,
you
can
use
the
edlin
commands
to
edit lines
of
text
in it. Here
are
a few things
to
remember
when
using
edlin
commands:
You
can
use pathnames
in
commands. For example, by typing
the
following
command
you
can
edit
a file
named
report
may
in a
subdirectory
named
\ sharpe \ budget:
edlin
\5harpe\budget\report.may
You
can
reference line
numbers
relative
to
the
current
line,
which
edlin
shows
with
an asterisk
(*).
To
indicate
lines
before
the
current
line, use a
minus
sign
with
a
number;
to
indicate lines after
the
current
line, use a
plus
sign
with
a
number.
The
following command, for example, lists 10 lines
before
the
current
line,
the
current
line,
and
10
lines after
the
current
line:
-10,+10L
Note A capital L is
used
here
for
the
L
(list)
command
to
avoid confusion
with
the
number
one. A
lowercase
I
would
work
just as well.
You
can
type
edlin
commands
with
or
without
a
space
between
the
line
number
and command. For example, for
deleting line 6,
the
command
6d
is
the
same as 6
d.
You
can
type multip!e
commands
on
one
command
line.
Just
type
them
one
after another.
But
if
you
want
to
use
the
edlin
line (
edit)
command
to
edit
a specific line, you have
to
separate
the
line
number
from
the
other
commands
with a semicolon.
To
end
a string in an S
(search)
or
R
(replace)
command, just
press
CONTROL·Z instead
of
the
RETURN key.
The
following com-
mand
line, for example, edits line 15,
then
displays lines
10
through
20
on
the
screen:
1S;-S,+SL
The
command
line in
the
next
example
searches for
the
words
monthly
budget and
then
displays five lines
before
and five
lines after
the
line that contains
monthly
budget. Also, in this
example
and
in those that follow, you'll
see
control
key

Table of Contents

Related product manuals