I have a string like
"solrHost" : "http://localhost:8983,http://localhost:8764",
in a file called sampple.json.
There could be space between "solrHost" and : or maybe not, and there could be space between : and "http://localhost:8983,http://localhost:8764"
I have a another variable newServerName="http://newserver,http://newserver2"
The value of solrHost could be anything between double quotes,
I want to replace the value of solrHost from old to newServerName using sed can anyone help me here ?