sed实现多行匹配-从字符串a所在行匹配到字符串b所在行结束

实现取出匹配begin的行直到匹配到end字符的行结束

sed -n '/begin/,/end/p' 1.txt

原文地址:https://www.cnblogs.com/sisier/p/4450858.html