I have a log file and want to extract all blocks of text that start with START and ends with END. Each block is 5 lines.
blah blah blah
I was thinking of :
grep -A 5 "--- START" file
What would I use if each block was 'not' 5 lines?
Thanks & Regards