I am (unsuccessfully) trying to substitute the database host entry in a Magento local.xml file (the connection string file).
The line is the following:
&
With GNU sed:
sed 's|\(\)|\1lala\2|' file
or
sed -E 's|()|\1lala\2|' file
Output: