Issue
I want to get the String between tag with case insensitive.
Sample.xml:
<Sample>
<emp>
<id>1234</id>
<name>Raj</name>
</emp>
</Sample>
Or
<Sample><emp><id>1234</id><name>Raj</name></emp></Sample>
I did like below that is working fine but not case insensitive.
sed -n 's:.*<name>\(.*\)</name>.*:\1:p' Sample.xml
Here name
is case insensitive, how to handle this.
Solution
I think you are looking for this
sed -n 's:.*<namE>\(.*\)</Name>.*:\1:pgI' Sample.xml
Answered By - pragnesh Answer Checked By - Marie Seifert (WPSolving Admin)