title: How to remove n lines from the top file or stdout (i.e rip its header off)
body: <p>What is the simplest global shell way to remove 3 (or whatever) lines from the top of some output of varying length? I realized that tail will only work if you know how long the document length is.</p>
  
  <p>Example: Say we want to process this but exclude first 2 lines of it's output</p>
  
  <pre><code>$ curl -s http://google.com
  &lt;HTML&gt;&lt;HEAD&gt;&lt;meta http-equiv="content-type" content="text/html;charset=utf-8"&gt;
  &lt;TITLE&gt;301 Moved&lt;/TITLE&gt;&lt;/HEAD&gt;&lt;BODY&gt;
  &lt;H1&gt;301 Moved&lt;/H1&gt;
  The document has moved
  &lt;A HREF="http://www.google.com/"&gt;here&lt;/A&gt;.
  &lt;/BODY&gt;&lt;/HTML&gt;
  </code></pre>
  
  <p>for fun here is python solution</p>
  
  <pre><code>$ curl -s http://google.com  | python -c "import sys; [sys.stdout.write(line) for line in list(sys.stdin)[2:]]" | sort
  &lt;A HREF="http://www.google.com/"&gt;here&lt;/A&gt;.
  &lt;/BODY&gt;&lt;/HTML&gt;
  &lt;H1&gt;301 Moved&lt;/H1&gt;
  The document has moved
  </code></pre>
  
  <p>Extending you shell this way</p>
  
  <pre><code>$ function from() {
  &gt; python -c "import sys; [sys.stdout.write(line) for line in list(sys.stdin)[${1}:]]"
  &gt; }
  </code></pre>
  
  <p>to do this with any number of lines</p>
  
  <pre><code>$ curl -s http://google.com  | from 3 | sort
  The document has moved
  &lt;A HREF="http://www.google.com/"&gt;here&lt;/A&gt;.
  &lt;/BODY&gt;&lt;/HTML&gt;
  </code></pre>