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?