Deleting lines of text
Use the d (delete) subcommand to delete one or more lines
of text. After you delete a line, the first line following the deleted
line (or lines) becomes the current working line. After a line is
deleted, the remaining lines in the buffer are renumbered.
- To delete the current working line, enter:
d
- To delete a specific line number, enter:
where n is the line number.nd
- To delete more than one line, enter:
where a1 is the number of the first line and a2 is the number of the last line.a1,a2d