I have an xml file called myfile.xml
<!--This is an xml document for test-->
<a><!--This is root node-->
<b>
<c>Hi&Welcome</c>
</b>
<d>Hello & How are you?</d>
</a>
I want this transformation
<!--This is an xml document for test-->
<a><!--This is root node-->
<b>
<c>Hi&Welcome</c>
</b>
<d>Hello & How are you?</d>
</a>
I am using sed command as follows to change all occurrences of & into &
sed -i 's:&:&:' myfile.xml
but I am getting `undefined label 'yfile.xml' error. I am unable to proceed further. How to do this?
sed
?sed --version
?-i
option needs an argument. Please don't ask about non-Ubuntu OSs here. You can ask on Unix & Linux instead.