title: Substitution till the end of the line in bash
body: <p>I have a huge text file with lots of lines like:</p>
  
  <pre><code>asdasdasdaasdasd_DATA_3424223423423423
  gsgsdgsgs_DATA_6846343636
  </code></pre>
  
  <p>.....</p>
  
  <p>I would like to do, for each line, to substitute from DATA_ .. to the end, with just empty space so I would get:</p>
  
  <pre><code>asdasdasdaasdasd_DATA_
  gsgsdgsgs_DATA_
  </code></pre>
  
  <p>.....</p>
  
  <p>I know that you can do something similar with:</p>
  
  <pre><code>sed -e "s/^DATA_*$/DATA_/g" filename.txt
  </code></pre>
  
  <p>but it does not work.</p>
  
  <p>Do you know how?</p>
  
  <p>Thanks</p>