[阅读: 305] 2006-08-10 06:59:39
An address range followed by one or more operations may require open and closed curly brackets, with
appropriate newlines.
/[0−9A−Za−z]/,/^$/{
/^$/d
}
This deletes only the first of each set of consecutive blank lines. That might be useful for single−spacing a
text file, but retaining the blank line(s) between paragraphs.