标签: shell
我需要使用Shell脚本从html内容中解析值。 例如:
<tr class="abc" some-value ="12344">1000</tr> <tr class="abc" some-value ="134556">2000</tr>
假设在HTML页面50中存在相同的<tr> </tr>,如示例中所述。使用shell我需要得到那50 <tr> </tr>。希望有人能帮助我。
<tr> </tr>
答案 0 :(得分:0)
您可以使用xpath command-类似的方法应该起作用:
xpath
xpath ./index.html '//tr/text()'