Hi,
I am trying to edit a XML file using a shell script, but having some issues. Any help would be great.
I would like to edit the following string in a XML file that will be copied to a computer using a shell script.
When the file is copied to the machine, the value will have the following:
<key>UserName</key>
<string>host/computer.mydomain.com</string>
I would like to use a variable I have created in the shell script $COMPUTERNAME when changing the value. Below would be the desired output
<key>UserName</key>
<string>host/$COMPUTERNAME.mydomain.com</string>
Any ideas or suggestions would ge great.
I am trying to edit a XML file using a shell script, but having some issues. Any help would be great.
I would like to edit the following string in a XML file that will be copied to a computer using a shell script.
When the file is copied to the machine, the value will have the following:
<key>UserName</key>
<string>host/computer.mydomain.com</string>
I would like to use a variable I have created in the shell script $COMPUTERNAME when changing the value. Below would be the desired output
<key>UserName</key>
<string>host/$COMPUTERNAME.mydomain.com</string>
Any ideas or suggestions would ge great.