[
f
__
_
[=
c
c
6 The Line Editor (Edlin)
In this
chapter
you
will learn:
•
How
to
start
edlin,
the
line
editor
program
•
How
to
quit
edlin
•
How
to
use
the
MS-DOS
special editing keys
with
edlin
For information
on
specific
edlin
commands, see
Chapter
7,
"Edlin Commands_"
About Edlin
You
can
use
the
MS-DOS
line editor,
edlin,
to
create
text
files
and
save
them
on
your
disks,
or
to
update
existing files, saving
both
the
original and
the
updated
files. Or,
with
edlin
you
can
delete,
edit, insert,
and
display lines in files.
It
will also
help
you
search
for,
and
delete
or
replace,
text
within
your
files. And,
though
it
isn't a
word
processor,
edlin
does
make
it
easy for
you
to
create
and revise files
such
as memos, letters, reports,
or
GW-BASIC
programs.
How Edlin Works
Edlin
divides
the
text
from a file into lines,
each
line containing
up
to
253
characters_ It gives
each
line a
number
and
always
numbers
the
lines consecutively. But,
even
though
you
see
these
line
numbers
on
the
screen
when
you
use
edlin,
they are
not
part
of
the
file_
When
you
insert lines
of
text
in a file,
the
line
numbers
after
the
inserted
text
are automatically adjusted. Similarly,
when
you
delete
lines in a file,
the
line
numbers
following
the
deleted
text
are automatically renumbered.
What can Edlin do?
How does Edlin
work?