I have a problem when I'm trying to regex a line in a document with sed. Here is what I want to regex:
proxy_pass http:\\193.168.19.35/;
I want to obtain the following result:
proxy_pass http:\\193.168.19.32/;
This is what I have tried:
sed -r 's/^proxy_pass htpp\:\/\/[[:digit:]]+.*\/;/proxy_pass htpp\:\/\/192.168.81.29\/;/' /etc/nginx/nginx.conf > /etc/nginx/nginx.conf.temp
Can you guys help me here?
htpp->http?192.168.81.29, it will never end up with the result193.168.19.32... Making your question consistent would probably be a good idea...