I want to capture the first occurence value of a given text field by reading the whole file. How to achieve this in shell:
Input line:
<coverage lines-valid="3966" lines-covered="2094" line-rate="0.528" branches-valid="5864" branches-covered="1400" branch-rate="0.23870000000000002" timestamp="1532416636656" complexity="0" version="0.1">
I need to get value of first occurence of line-rate field.