The important thing to remember is: if the line matches the address,
the entire line is deleted, not just the portion of the line that is
matched. (To delete a portion of a line, use the substitute command
and specify an empty replacement.) In the previous chapter,
we showed a command to delete blank lines:
/^$/d
Another use of the delete command could be to strip out certain
troff requests, such as those that add spacing,
break the page, and turn fill mode off and on:
/^\.sp/d
/^\.bp/d
/^\.nf/d
/^\.fi/d
These commands delete an entire line. For instance, the first command
will delete the line ".sp 1" or ".sp .03v".