【发布时间】:2013-05-06 07:12:41
【问题描述】:
我想知道如何使用 sed 单行只打印出每个段落的第一个单词。在这种情况下,段落由两个换行符后的文本定义。
例如
This is a paragraph with some text. Some random text that is not really important.
This is another paragraph with some text.
However this sentence is still in the same paragraph.
这应该转化为
This
This
【问题讨论】:
标签: sed