You're welcome! Take in mind that the first sed extracts lines between the two regular expressions, the second and the third sed commands in the pipeline remove the first and the last line of the output, respectively. So, if you have more than one block starting with "log started" and ending with "log stopped", the lines containing these two strings - in the middle - will not be removed.
|