I am grepping an XML File, which gives me output like this:
data more data ...
Note, this is a fl
I know this is not a "perlgolf contest", but I used to use this trick.
Set Record Separator for < or >, then print only odd lines:
<
>
awk -vRS='<|>' NR%2 file.xml