My file contains a line like this:
<virtual-server name="default-host" enable-welcome-root="false">
I want to replace: enable-welcome-root from false to true
Using sed -n 's/.*enable-welcome-root="\([^"]*\).*/\1/p' file
I can get the value which is false
, but how can I replace it?