📜  在两种模式之间抓取 - Shell-Bash 代码示例

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

代码示例1
sed '/start_pattern_here/,/end_pattern_here/!d' inputfile

 awk '$0=="pattern1" {p=1}; p; $0=="pattern2" {p=0}' file