I have a program which prints out data in blocks. Each block is delimited by blank lines.
I would like to discard most blocks and only keep those blocks that contain something that matches a regex.
I can of course do it with a scripting language or a prgram, but that seems rather crude. Is there a better way to do it?