I am new to unix and trying to extract some values from a HTML file. Using shell script, I am trying to extract value1 , value2 and value3 in this file below.
Using these values I have to compare against database and confirm if document is right.
<html>
<body>
<div style="text-align:center;"><font style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:'Times New Roman',sans-serif;font-size:12pt;font-weight:400;line-height:120%;">value1 is : 10000</font></div>
<div><font><br></font></div>
<div style="text-align:center;"><font style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:'Times New Roman',sans-serif;font-size:12pt;font-weight:400;line-height:120%;"> value2 is : 10001</font></div>
<div><font><br></font></div>
<div style="text-align:center;"><font><br></font></div>
<div style="text-align:center;"><font style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:'Times New Roman',sans-serif;font-size:12pt;font-weight:400;line-height:120%;">Value3 is : 10002</font></div>
</body>
</html>
Thanks
Using these values I have to compare against database and confirm if document is right.
<html>
<body>
<div style="text-align:center;"><font style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:'Times New Roman',sans-serif;font-size:12pt;font-weight:400;line-height:120%;">value1 is : 10000</font></div>
<div><font><br></font></div>
<div style="text-align:center;"><font style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:'Times New Roman',sans-serif;font-size:12pt;font-weight:400;line-height:120%;"> value2 is : 10001</font></div>
<div><font><br></font></div>
<div style="text-align:center;"><font><br></font></div>
<div style="text-align:center;"><font style="background-color:rgb(255,255,255, 0.0);color:#000000;font-family:'Times New Roman',sans-serif;font-size:12pt;font-weight:400;line-height:120%;">Value3 is : 10002</font></div>
</body>
</html>
Thanks