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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -