Chapter
9/
Editing
Files
Example
1:
Copy
Char
(G)
Using
the
Copy Char function,
G,
copy
characters from
the
tem-
plate
to
the
new line.
1.
Press
G once. The screen looks like this:
1
:*This
is
a
sample
file
1
:*T_
2.
Press
G
three
times. The screen looks like this:
1
:*This
is
a
sample
file
1:
*Thi
s_
Each time you press
G,
EDLIN copies another character
from
the
template to
the
new line.
3.
To
continue to
the
next example, type I
CTRL
I
[n
This exits
the
insert
mode, voids any changes you have made to
the
line, and
returns
the
EDLIN prompt
(*).
Example
2:
Copy
to
Char
«(ill)
Using
the
Copy to char function,
(ill,
copy
all characters from
the
template, up
to-but
not
including-the
specified character.
1.
At
the
EDLIN prompt, type 2 I
ENTER
I.
The screen looks like
this:
2:*The
editing
keys
are
easy
to
use
2:*_
2.
Type
ill]
a . The screen looks like this:
2:*
The
editing
keys
are
easy
to
use
2:*
The
editing
keys_
3.
Now
copy
the
rest
of
the
template, using
the
Copy
All func-
tion,
[TI]. The screen looks like this:
2:*The
editing
keys
are
easy
to
use
2:*The
editing
keys
are
easy
to
use
4.
Type I
CTRL
I
@]
to continue to
the
next example.
Note:
If
the
template does not contain
the
specified
character, nothing is copied.
198
,
L.J
i I
, I
LJ
i j
'--..J
!
,
~
\ '
, I
1-
\ '
: I
l.-J
I I
, ,
, )
\ !
1 !
~
\ !
I
'.-.J
'---l