How can I search for a multiline pattern in a file?

Why don’t you go for awk:

awk '/Start pattern/,/End pattern/' filename

Leave a Comment