title: How can I remove a substring of a string in a shell script?
body: <p>I have a file with a list of words like:</p>
  
  <pre><code>FIRST_WORD abc
  FIRST_WORD(1) bcd
  FIRST_WORD(2) def
  SECOND_WORD gh
  THIRD_WORD jiu
  THIRD_WORD(1) lom
  ...
  </code></pre>
  
  <p>and I want to remove the <code>(i)</code>, when it is present, to obtain:</p>
  
  <pre><code>FIRST_WORD abc
  FIRST_WORD bcd
  FIRST_WORD def
  SECOND_WORD gh
  THIRD_WORD jiu
  THIRD_WORD lom
  ...
  </code></pre>