title: remove all characters after pattern in text file
body: <p>I have a text file with thousands of lines of text. Each line ends like </p>
  
  <pre><code>\\server\share\file.txt -&gt; information
  </code></pre>
  
  <p>I want to remove everything following the space after the end of the file extension. So everything after " ->" (there's a space after the first quote)</p>
  
  <p>How would you do this? I'd like to use vim as I am trying to understand more about it, but any program will do; I'd like to get this done soon. </p>