Extract Blocks of Info from Log File
New learner..this would be my first try at writing in Python that I can actually put to use:
Have log file content that looks like this
Basically - I only want to keep "slots" with the indicator "/* mysql */" - the blocks in RED BOX, e.g. Line 13~15 and line 20~22, discard everything else.
Please tell how best to do this and I will try to hack something out
(or if you have something ready, that'd be great )