title: replace using bash - Dynamic value
body: <p>I have a Json file that has following values</p>
  
  <pre><code>cat file
      {
      "key1": "value1"
      "key2": "value2",
      }
  </code></pre>
  
  <p>I would like to change value1 and value2. Values are dynamic it changes overtime. My sed should work with any value and mylook up should be by key.
  "
  my sed command is not helping.</p>
  
  <pre><code> sed -i 's/*\"key2\":*/\"key2\": "someothervalue2"/' file
  </code></pre>