The problem? Delete a few repeating patterns from a few text files. Except that each text file is several hundred megabytes in size. For some weird reason, I spent *quite* some time fiddling around with sed (yes - *that* sed )and trying to get multi-line patterns to work.
And then it hit me.
Five minutes and an equal number in lines of Python code later, I had something that did the job as well.
There's a moral in this tale somewhere. I'm just not sure what it is.