Sed replace ">" to "/>" bash
I'm newbie and I would like to replace "special" caracters with sed. I
have an xml file that it is not well formed and at the end of any data row
it finish with ">" I need to scrap it and to do it I need to change ">"
with "/>". But when I try:
sed -i s/>//>/g FILE
returns => -bash: //: Is a directory
same with:
sed -i s/>/\/>/g FILE
also with
sed -i s,>,\>,g FILE
Man page doesn't solve this problem.
Does anyone face this issue?
No comments:
Post a Comment