title: Linux search and replace a patterns case within a string
body: <p>Been struggling to figure out a way to do this. Basically I need to change the case of <strong>anything</strong> enclosed in {} from lower to upper within a string representing a uri (and also strip out the braces but I can use sed to do that)</p>
  
  <p>E.g</p>
  
  <pre><code>/logs/{server_id}/path/{os_id}
  </code></pre>
  
  <p>To</p>
  
  <pre><code>/logs/SERVER_ID/path/OS_ID
  </code></pre>
  
  <p>The case of the rest of the string must be preserved in lower which is what has been beating me. Looked at combos of sed,awk,tr with regex so far. Any help appreciated. </p>