grep "val" index.php I get the list
<td class=val> 7.6</td> <td class=val> 58</td> <td class=val>1013.8 </td> <td class=val> 1020 </td> <td class=val> 0.2</td> <td class=val> 2.4</td>
I'd like to filter and get only the value of the first
td, that is, 7.6 and save it to use later with
That value could change, so
grep "7.6" is not good.
(!) The line in
php containing that tag is line 42. A solution without this information could be better since the line number could change. But for a while, using its number can be a temporary solution.
I searched for a solution but I only found complex ones.