title: Remove a word from a string bash
body: <p>I have the string  </p>
  
  <pre><code>file="this-is-a-{test}file" 
  </code></pre>
  
  <p>I want to remove <code>{test}</code> from this string.
  I used   </p>
  
  <pre><code>echo $file | sed 's/[{][^}]*//'  
  </code></pre>
  
  <p>but this returned me  </p>
  
  <pre><code>this-is-a-}file
  </code></pre>
  
  <p>How can I remove <code>}</code> too?</p>
  
  <p>Thanks</p>