Delete Commands


 

The DELETE commands remove lines, blocks or strings from the input data. After the delete command is finished (depending on which command), the user has the option to enter a replacement line or a null entry positions the cursor for entry of another data line. Available commands are:

:D

Delete the current pointed line from the data file. After the line is removed, the cursor is positioned at the beginning of that line waiting for a new data line or a null entry. A null entry closes up the screen and retrieves the next data line from the input file.

:D{n}

Delete starting with the current pointed line, {n} lines from the input file. n lines are retrieved from the input file to take the place of the deleted lines. A new line prompt is not given.

:D {string}

Delete all data up through {string} in the current pointed line. Any remaining data is left justified.

:D

Repeat the last {string} delete as defined above.

:DV {string}

Delete all data up through {string} in the current pointed line with verification. Any remaining data is left justified.

:DV

Repeat the last {string} delete with verification as defined above.

:D*

Display the last {string} used in a delete, find or locate command.

:SB

Delete all lines from and including the pointed line, to the bottom of the screen. After deleting these lines, new lines are retrieved from the input file and the screen is filled with these.

:SC

Delete all lines from and including the pointed line, to the top of the screen. After deleting these lines, new lines are retrieved from the input file and the screen is filled with these.

Note the following:

  1. The pointer does not move during the DELETE commands.

  2. It is not possible to recover deleted data without re-keying or aborting this edit (:O command) and restarting (if the data was in the original input file).

  3. The ESCAPE sequence is applicable to all of the multiple occurrence :D commands.

 

 

See Also: Example Commands, SUNEDIT Commands, Line Edit Mode, SUNEDIT

 



System Utilities Data line SPLIT Example (:V KEYIN) Delete One Line Example (:D)