Address and Command Examples
• d deletes all lines
• 6d deletes line 6
• /^$/d deletes all blank lines
• 1,10d deletes lines 1 through 10
• 1,/^$/d deletes from line 1 through the first blank line
• /^$/,$d deletes from the first blank line through
the last line of the file
• /^$/,10d deletes from the first blank line through line 10
• /^ya*y/,/[0-9]$/d deletes from the first line that begins
with yay, yaay, yaaay, etc. through
the first line that ends with a digit