title: Skipping the first n lines when using regex with sed?
body: <p>In <code>sed</code>, is it possible to skip the first n lines when applying a regex? I am currently using the following:</p>
  
  <pre><code>cat test | sed '/^Name/d;/^----------/1;/^(/d;/^$/d'
  </code></pre>
  
  <p>on the following file:</p>
  
  <pre><code>Name
  John
  Albert
  Mora
  Name
  Tommy
  Tammy
  </code></pre>
  
  <p>In one pass, I want to use some regexes (one of which is to remove the line containing <code>Name</code> but I want to skip the first line in this case) to obtain the following:</p>
  
  <pre><code>Name
  John
  Albert
  Mora
  Tommy
  Tammy
  </code></pre>
  
  <p>Because the file is huge, I don't want to make multiple passes so any one-pass approaches would be great.</p>