/ Published in: Bash

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<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
URL: http://unstableme.blogspot.com/2010/01/replace-values-in-xml-using-sed-and-awk.html
Comments
