title: Delete all lines before first occurrence of specific string in file
body: <p>Basically I have a file like:</p>
  
  <pre><code>junk
  morejunk
  somestring
  bats
  car
  somestring
  bats
  car
  somestring
  bats
  car
  </code></pre>
  
  <p>and I want to remove all of the <code>junk</code> before the first occurrence of <code>somestring</code> so the file looks like</p>
  
  <pre><code>somestring
  bats
  car
  somestring
  bats
  car
  somestring
  bats
  car
  </code></pre>
  
  <p>I followed the advice from <a href="https://stackoverflow.com/questions/7416921/how-can-i-delete-all-lines-before-a-specific-string-from-a-number-of-files">this question</a> to use <code>sed -i '0,/somestring/,d' file.txt</code> but it deletes the line with the first occurrence of <code>somestring</code>, when I want to keep that line as the first line.</p>