I am trying to find these three lines:
<!--
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
-->
and replace them with:
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
When I try
sudo sed -i 's:<!-- <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> -->:<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />:' /myfile.xml
It doesn't find it, I also tried to put \n in it, but it still didn't work:
sudo sed -i 's:<!--\n <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />\n -->:<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />:' /myfile.xml
These don't throw any errors it just doesn't uncomment the line. Any advice would help thanks!