in bash, i'm trying to use sed to replace a line of text in xml file.
line_item=jdbc:a_connector://localhost:2323/database?create=true&ssl=true&sslMode=required
In the xml file, I have it something like:
...
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>{URL_TO_CHANGE}</value>
</property>
...
I tried to do sed -e "s {URL_TO_CHANGE} $line_item " path/to/file.xml note: using (space) as the delimiter
however, the results is always: jdbc:a_connector://localhost:2323/database?create=trueURL_TO_CHANGEamp;ssl=trueURL_TO_CHANGEamp;
not sure why this is happening?