title: Sed - not working- Nothing is updated and no error
body: <p>I have the ip-address stored in a parameter called Worker1 and another ip-address is stored in SPARK_MASTER_IP</p>
  
  <pre><code>echo $Worker1
  10.100.53.185
  echo $SPARK_MASTER_IP
  10.100.53.218
  </code></pre>
  
  <p>I am trying to replace the line discovery.zen.ping.unicast.hosts: [127.0.0.1] like below line.</p>
  
  <pre><code>discovery.zen.ping.unicast.hosts: ["10.100.53.218","10.100.53.185"]
  </code></pre>
  
  <p>When i try to use the below command using sed, Nothing is updated and no error. Please help me with a solution </p>
  
  <pre><code>sed -i -e "s/discovery.zen.ping.unicast.hosts: [127.0.0.1]/discovery.zen.ping.unicast.hosts: ["'$SPARK_MASTER_IP'","'$Worker1'"]/g" /etc/elasticsearch/elasticsearch.yml
  </code></pre>
  
  <p>Thanks!</p>