Using awk or sed how can I select lines which are occurring between two different marker patterns? There may be multiple sections marked with these
From the previous response's links, the one that did it for me, running ksh on Solaris, was this:
sed '1,/firstmatch/d;/secondmatch/,$d'
1,/firstmatch/d: from line 1 until the first time you find firstmatch, delete./secondmatch/,$d: from the first occurrance of secondmatch until the end of file, delete.