📌  相关文章
📜  sed 在两个模式之间提取字符串 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:54.037000             🧑  作者: Mango

代码示例1
Just use following structure to get result between two different patterns:
sed -n '/^pattern1/,/^pattern2/p;/^pattern2/q' file.txt