0

I need to parse value from an html content using shell script. Ex:

<tr class="abc" some-value ="12344">1000</tr>
<tr class="abc" some-value ="134556">2000</tr>

Assume in the HTML page 50 of the same <tr> </tr> are there as mentioned above in the example. using shell I need to get those 50 <tr> </tr>. would appreciate if anyone can help me.

newbie
  • 147
  • 1
  • 1
  • 8

1 Answers1

0

You can use the xpath command - something like this should work:

xpath ./index.html '//tr/text()'
l0b0
  • 55,365
  • 30
  • 138
  • 223