How can I search for a multiline pattern in a file? May 13, 2022 by Tarik Why don’t you go for awk: awk '/Start pattern/,/End pattern/' filename