I have the following html:
<html>
<head></head>
<body>
<span class="hello-style" id="hello123">
hello world
</span>
<span class="value-style">
1000
</span>
<span class="value-style">
2000
</span>
<span class="value-style">
3000
</span>
</body>
</html>
I would like to match each value after <span class="value-style">
that can be anything, so the output from the above example should be:
1000
2000
3000
This should at least remove all non-numeric values, but it does not:
curl 127.0.0.1/index.html | sed 's/[a-zA-Z]/""/'
EDIT
curl 127.0.0.1/index.html | tr -d '\n' | sed '...'