The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-17-2005
nem_kirk nem_kirk is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 1
Automated replacement of HTML Tags

Hi All,

I use a utility to generate a xml file....which looks something as follows

<xml>
<name>some name</name>
<value>some value</value>
<machine>rocker</machine>
</xml>

I would like to run a KSH script which will replace this machine tag value 'rocker' to say 'docker'.
I would like to pass a text file with these replacement variables to this original xml file to the Unix script and replace all occurences of the machine tag in the file with the values inside the text file.


Thanks for your help in advance
ciao.