I have several thousand (well formed) XML files of the following template :
<?xml version="1.0" ?> <queries> <statement name="foobar"> <body><![CDATA[ Several lines worth of text goes in here ]]></body> </statement> <statement name="whatever"> [... snip ...] </statement> </queries>
I need to get a list of those statements for which the text content of the body span over 10 lines. Short of writing a python script to do that, is there a simple way to use grep or other standard tools to look into each file and return the statements that span many lines? At the very least, I'd be happy with something that would return a list of filenames for which there is one such statement.