I have an xml file with following tags
<NewTag>value123</xyz>
<NewTag>value321</abcd>
I have to replace the values in between the tags with some value ( VAL1/VAL2)
but the thing the ending tag can be any thing, for this i need a awk command
currently i am using this but it doesn't work:confused:
I tried to understand it but I didn't. Can you post a sample output of what you want to have? And why can the ending Tag be another than the opening Tag?
can you tell me how can i replace only a speific occurance of this pattern! i mean say i want o replace the 3rd occurance of the RED, then what will be flag for the sed command instead of "g" ?