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.
Code:
--- START
blah blah blah
--- END
I was thinking of :
Code:
grep -A 5 "--- START" file
What would I use if each block was 'not' 5 lines?
Thanks & Regards