title: sed returns "sed: command garbled"
body: <p>I have this data in file.txt:</p>
  
  <pre><code>1234-abca-dgdsf-kds-2;abc dfsfds 2
  123-abcdegfs-sdsd;dsfdsf dfd f
  12523-cvjbsvndv-dvd-dvdv;dsfdsfpage
  </code></pre>
  
  <p>I want to replace the string after "-" and up to ";" with just ";", so that I get:</p>
  
  <pre><code>1234;abc dfsfds 2 
  123;dsfdsf dfd f 
  12523;dsfdsfpage
  </code></pre>
  
  <p>I tried with the command:</p>
  
  <pre><code>sed -e "s/-.*;/;" file.txt
  </code></pre>
  
  <p>But it gives me the following error:</p>
  
  <blockquote>
    <p>sed command garbled</p>
  </blockquote>
  
  <p>Why is this happening?</p>