🌈 搜索
📅  最后修改于: 2022-03-11 14:49:50.490000             🧑  作者: Mango
sed '/start_pattern_here/,/end_pattern_here/!d' inputfile awk '$0=="pattern1" {p=1}; p; $0=="pattern2" {p=0}' file