I have a couple of hundred html source code files. I need to extract the contents of a particular
<div> element from each of these file so I'm going to write a script to loop through each file. The element structure is like this:
<div id='the_div_id'> <div id='some_other_div'> <h3>Some content</h3> </div> </div>
Can anyone suggest a method by which I can extract the div
the_div_id and all the child elements and content from a file using the linux command line?