Answer the question
In order to leave comments, you need to log in
How to extract number using awk/sed from html file?
Good afternoon! There is an html file that contains the following line, you need to extract the amount from the file, in our case 11 111, and output it as 11111.
<dl><dt>Текущий баланс</dt><dd><div class="span28"><span class="money bold">11 111<sup class="hide-text">.</sup><sup>32</sup>
Answer the question
In order to leave comments, you need to log in
If long and do not think:
grep "Текущий баланс" | sed -e 's/^.*money bold>//g' -e 's/<sup class=hide-text>.*$//g' -e 's/\ //g'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question