Using sed in red hat linux to replace text -
I have some XML directories and all these tags are included: & lt; Difficult & gt; 0 & lt; / Difficult & gt; . I'll call it & lt; Hard & gt; 1 & lt; / Hard & gt; I want to change in .
I am using the following command:
sed 's / hard & gt; 0 / hard & gt; 1 / g * * .xml All this happens that the whole XML text of all files is displayed, showing the value of hard tag 1 , But nothing happens to the actual files when I open them, even then they all & lt; Hard & gt; 0 .
sed -i 's / hard & gt; 0 / hard & gt; 1 / g * * .xml
Comments
Post a Comment