title: Linux head/tail with offset
body: <p>Is there a way in Linux to ask for the Head or Tail but with an additional offset of records to ignore.</p>
  
  <p>For example if the file <code>example.lst</code> contains the following:</p>
  
  <pre><code>row01
  row02
  row03
  row04
  row05
  </code></pre>
  
  <p>And I use <code>head -n3 example.lst</code> I can get rows 1 - 3 but what if I want it to skip the first row and get rows 2 - 4?</p>
  
  <p>I ask because some commands have a header which may not be desirable within the search results. For example <code>du -h ~ --max-depth 1 | sort -rh</code> will return the directory size of all folders within the home directory sorted in descending order but will append the current directory to the top of the result set (i.e. <code>~</code>).</p>
  
  <p>The Head and Tail man pages don't seem to have any offset parameter so maybe there is some kind of <code>range</code> command where the required lines can be specified: e.g. <code>range 2-10</code> or something?</p>