hi, i am new to unix and i have a problem.
--------------------------------------------------------------
sebben.xml
<envelope>
<email> sebben@example.com
</email>
</envelope>
script_mail written in the vi editor.
#!/bin/sh
script to change the value in attribute <email>
echo "type in your emailadress"
read MAIL
sed??
the script and the xml file is in the same catalog.
now what i want the script to do is to change the value in attribute <email> who currently is sebben@example.com to what the user type in. the attribute email should always change to what is typed in and erase the current email in <email>
i have tryed to use the sed command but i cant get it to work. I could really use some help if someone has some time over.
thanks/ sebben