title: How to trim specific text with grep
body: <p>I am in need of trimming some text with grep, I have tried various other methods and havn't had much luck, so for example:</p>
  
  <pre><code>C:\Users\Admin\Documents\report2011.docx: My Report 2011
  C:\Users\Admin\Documents\newposter.docx: Dinner Party Poster 08
  </code></pre>
  
  <p>How would it be possible to trim the text file, so to trim the ":" and all characters after it.</p>
  
  <p>E.g. so the output would be like:</p>
  
  <pre><code>C:\Users\Admin\Documents\report2011.docx
  C:\Users\Admin\Documents\newposter.docx
  </code></pre>