I have the following block of data and need to extract the percent value in XYZ FREEBYTES, i.e. captured value should be equal to 64. As far as I know, I can grep and cut the data. However, the digits are not fixed. How can I extract the variable percent value in the below block please?
<ab type="global" id="80" totalid="80" intervalms="2150804.595">
<contraction type="tenured" amount="4325376" newsize="1081330176" timetaken="6.373" reason="space following ab" />
<finalization objectsqueued="2683" />
<timesms mark="546.032" sweep="11.013" compact="0.000" total="564.779" />
<XYZ FREEBYTES="700212376" totalbytes="108133017" percent="64" >
<abc freebytes="696214000" totalbytes="107700531" percent="64" />
<efg freebytes="3998376" totalbytes="432486" percent="92" />
</XYZ>
</ab>