This better goes with an example (yes, from an .srt-file):
231 00:13:35,230 --> 00:13:37,120 - Oh, my sister got me into it. 232 00:13:37,129 --> 00:13:38,269 - Yeah? 233 00:13:37,129 --> 00:13:38,269 Is that her? 234 00:13:40,049 --> 00:13:41,090 - Yeah. The line 00:13:37,129 --> 00:13:38,269 appears twice and I want to connect the two sections. So it would have to work like this:
- check all lines containing " --> "
- if it matches the previous such finding remove this line and the two lines above
So the result would be:
231 00:13:35,230 --> 00:13:37,120 - Oh, my sister got me into it. 232 00:13:37,129 --> 00:13:38,269 - Yeah? Is that her? 234 00:13:40,049 --> 00:13:41,090 - Yeah. This goes way beyond my sed-skills. It probably works with that internal buffer and pattern space? Well, I don't even have a clue how to approach this...