I have lines with:
elseif (req.http.host ~ "^(www.)?edificationtube.com$|www.edificationtube.org www.edificationtube.net edificationtube.org www.edificationtube.com edificationtube.net") {
elseif (req.http.host ~ "^(www.)?collegecontender.com$|www.collegecontender.com collegecontenders.com www.collegecontenders.com") {
elseif (req.http.host ~ "^(www.)?adaxle.com$|www.adaxle.net www.adaxle.com adaxle.net www.adaxle.org www.adaxle.biz adaxle.org adaxle.biz") {
Within a txt file, I want a sed command that would go through only lines that contain "req.http.host", but only replace the spaces within those lines it finds between the quotes, so the end result would look like:
elseif (req.http.host ~ "^(www.)?edificationtube.com$|www.edificationtube.org|www.edificationtube.net edificationtube.org|www.edificationtube.com|edificationtube.net") {
elseif (req.http.host ~ "^(www.)?collegecontender.com$|www.collegecontender.com|collegecontenders.com|www.collegecontenders.com") {
elseif (req.http.host ~ "^(www.)?adaxle.com$|www.adaxle.net|www.adaxle.com|adaxle.net|www.adaxle.org|www.adaxle.biz|adaxle.org|adaxle.biz") {
Can anyone guide me on how this can be done with sed/awk?
Thanks!