In article <
59217ed3-0e6e-4920...@googlegroups.com>,
Here's a way to do it that involves manipulating the "internal variables" -
a technique that I usually argue against (i.e., think should be used with
caution) - but I think you will find it interesting. Note to other group
geeks: This is not necessarily the easiest (or least byte count) way to do
this task, but, as I said, I find this approach interesting.
# Yes, the output will have a trailing blank...
BEGIN {ORS=" ";RS="_end\n";FS="\n| "}
{for (i=1; i<=NF; i+=2)
if ($i == "_begin" || $i == "_attrib1") print $(i+1)
printf "\n"}
--
But the Bush apologists hope that you won't remember all that. And they
also have a theory, which I've been hearing more and more - namely,
that President Obama, though not yet in office or even elected, caused the
2008 slump. You see, people were worried in advance about his future
policies, and that's what caused the economy to tank. Seriously.
(Paul Krugman - Addicted to Bush)