title: sed - delete all characters before dash
body: <p>I have list of filenames for which I want to remove all character before the first instance of <code>-</code>. So the names below in the Before: list appears as those in the After: list.</p>
  
  <pre><code>Before:
  Adam James - Welcome Home.txt
  Mike &amp; Harry - One Upon - A Time.txt
  William-Kent - Prince &amp; The Frog.txt
  
  After:
  Welcome Home.txt
  One Upon - A Time.txt
  Prince &amp; The Frog.txt
  </code></pre>
  
  <p>I've been playing around with sed for hours with no avail.</p>
  
  <p>I found that <code>sed 's/ - .*//'</code> removes all characters after the first instance of <code>-</code> but I cannot find the same for before.</p>