Instead of substituting the first pattern, it adds another ".host". I don't understand what I'm missing.
Code:
grep host /etc/varnish/default.vcl
Result:
Code:
.host = "172.31.108.183";
Code:
sed -r "s/(.host = \")[0-9]+.[0-9]+.[0-9]+.[0-9]+(\")/\1\192.10.10.10\2/}" /etc/varnish/default.vcl | grep host
Result:
Code:
.host = ".host = "92.10.10.10";