title: Remove all lines before a match with sed
body: <p>I'm using sed to filter a list of files. I have a sorted list of folders and I want to get all lines after a specific one. To do this task I'm using the solution described <a href="https://stackoverflow.com/a/5935779/518204">here</a> which works pretty well with any input I tried but it doesn't work when the match is on the first line. In that case sed will remove all lines of the input</p>
  <p>Here it's an example:</p>
  <pre><code>$ ls -1 /
  bin
  boot
  ...
  sys
  tmp
  usr
  var
  vmlinuz
  
  $ ls -1 / | sed '1,/tmp/d'
  usr
  var
  vmlinuz
  
  $ ls -1 / | sed '1,/^bin$/d'
  # sed will delete all lines from the input stream
  </code></pre>
  <p>How should I change the command to consider also the limit case when first line is matched by regexp?</p>
  <p>BTW <code>sed '1,1d'</code> correctly works and remove the first line only.</p>