Previous Topic: C (copy) CommandNext Topic: X (exclude) Command


D (delete) Command

The D (delete) Command is used to delete a line or block of lines. No other Line Commands can be entered on the lines to be deleted. The syntax for the D (delete) Command is:

D = number-of-lines

where:

number-of-lines—specifies the number of lines to be deleted.

D—specifies a single line to be deleted.

Dn—specifies the first of n lines to be deleted.

DD … DD—specifies the first and last lines of a block of lines to be deleted.

The following are the rules that you can follow while using D (delete) command: