LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Change mutiple xml files (https://www.linuxquestions.org/questions/programming-9/change-mutiple-xml-files-803324/)

Exise 04-21-2010 11:20 AM

Change mutiple xml files
 
I'm trying to change a line of a bunch of xml files (more than 800).

What I want is to change this line:

Code:

<variable name="reliability" size="1">96</variable>
to
<variable name="reliability" size="1">0</variable>

This is just an example, and the number can be anything fom 0 to 100. The problem is, I dont have any experience with scripting etc. Could someone help me out?

PMP 04-21-2010 11:38 AM

If it is restricted to change the number only sed can be useful and if there are many modification I will suggest you to use perl along with a XML module to change this


All times are GMT -5. The time now is 12:15 AM.