Return to Snippet

Revision: 36383
at November 21, 2010 07:32 by moonbather


Initial Code
<Student>
        <StudentId>E687</StudentId>
        <ClassId>12</ClassId>
        <Amount>50</Amount>
        <Location>AR</Location>
</Student>


#Change 50 to 100
sed 's#\(<Amount>\)[0-9]*\(</Amount>\)#\1'100'\2#g' test.xml

Initial URL
http://unstableme.blogspot.com/2010/01/replace-values-in-xml-using-sed-and-awk.html

Initial Description

                                

Initial Title
SED find and replace xml

Initial Tags

                                

Initial Language
Bash