I want to edit a xml file using a shell script.
i've got something like this
<version>1.7.21</version>
And i want my script to edit the .xml file like this, using a variable
ex : $value = 3.2 '' command to change the xml file '' and get this :
<version>3.2</version>
I've been looking on the web but nothing works for me ..
Edit: I'm looking for a generic way.
For example the solution of this post : How to change specific value of XML attribute using scripting on Mac
isn't what i'm looking for, because it depends of the previous xml file.