I have an xml file :
<record name="rfPathProv">
<key name="pathId" value="1"/>
<key name="pathDirection" value="RX"/>
<field name="band" value="4"/>
</record>
<record name="rfPathProv">
<key name="pathId" value="1"/>
<key name="pathDirection" value="TX"/>
<field name="band" value="4"/>
</record>
I need to replace the band value only if the record name="rfPathProv" and key name="pathId" value="1" using bash scripts. please help. Thanks in advance.