delete 6
of the file, use an asterisk (*):
delete *
If you want to delete an undetermined number of lines, up to a
particular character string, you can use the DSTRING subcommand:
dstring /weather/
current line down to and including the line just above the line
containing the character string
Fointer is positioned at the line that has
If you want to replace a line with another line, you can use the
REPLACE subcommand:
replace *******
The current line is deleted and the line "*******" is inserted in its
place. The current line pointer is not moved.
To replace an existing line with many new lines, you can issue the
REPLACE subcommand with no new data line:
replace
The editor deletes the current line and enters input mode.
example:
input * this subroutine is for testing only
inserts a single line following the current line. If you want to insert
many lines, you can issue the
This allows you to copy lines from other files to include in the file
you are editing or creating. For example:
getfile single items c
inserts all the lines in the file SINGLE
the current line pointer. The line pointer is positioned at the last
line that was read in.
72 IBM