I'm trying to make a linux bash
script
to download an html
page, extract numbers from this html
page and assign them to a variable.
the html
page has several lines but I'm interested in these :
<tr>
<td width="16"><img src="img/ico_message.gif"></td>
<td width="180"><strong> TIME 1</strong></td>
<td width="132">
<div align="right"><strong>61</strong></div></td>
</tr>
<tr>
<td width="16"><img src="img/ico_message.gif"></td>
<td width="180"><strong> TIME 2</strong></td>
<td width="132">
<div align="right"><strong>65</strong></div></td>
</tr>
</table></td>
Every time I download the page I have to read the two values in row 5
and 11
between strong>
and </strong
(61
ad 65
in this example; 61
and 65
in this example, but each time they are different)
The two values extracted from html
must be able to assign them to two variables
Thanks for any idea