相关疑难解决方法(0)

如何在多行上搜索多个模式?

准确地说

Some text
begin
Some text goes here.
end
Some more text
Run Code Online (Sandbox Code Playgroud)

我想提取从“开始”到“结束”的整个块。

使用 awk 我们可以像awk '/begin/,/end/' text.

用grep怎么办?

command-line grep text-processing

23
推荐指数
1
解决办法
7万
查看次数

标签 统计

command-line ×1

grep ×1

text-processing ×1