I'm trying to write a Bash script that will extract informations from a HTML page (using
I know my informations will be between
<h*> tags, but is there a nice way to get those ?
To be more precise let's have an example :
< h1>header1< /h1>
< h2>header2< /h2>
< h2>otherHeader2< /h2>
< h1>lastHeader1< /h1>
< h2>lastHeader2< /h2>
I'd like to extract "otherHeader2", a.k.a. the second (but it could be anywhere) header afer the header1.