准确地说
Some text begin Some text goes here. end Some more text
我想提取从“开始”到“结束”的整个块。
使用 awk 我们可以像awk '/begin/,/end/' text.
awk '/begin/,/end/' text
用grep怎么办?
command-line grep text-processing
command-line ×1
grep ×1
text-processing ×1