This question already has an answer here:
Several questions are similar to this one, but I have not found a solution that works when I want to search for a pattern over several lines. The following
sed -n '/First string/,/Second string/ p' my.file
will print all occurrences of the matched pattern, but I would like only the first occurrence. I am using GNU sed.