I have an html-type of file that somewhere includes a tag as follows:
How do I catch in a variable the value
0.3.5 and only this?
I have come as far as grepping the line as follows:
grep -E "<Currentnumber>.*</Currentnumber>$" myfile
I would appreciate if for educational purposes any answer also provided an explanation of the
grep parameters used.
Pls note that the line starts with some empty spaces (or tabs), this is why the following will not work
grep -E "^<Currentnumber>.*</Currentnumber>$" myfile