中国开发网: 论坛: 程序员情感CBD: 贴子 373248
coolbjwolf
老玉米,我上午说的SED就是这段
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.

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录