title: Bash tool to get nth line from a file
body: <p>Is there a "canonical" way of doing that? I've been using <code>head -n | tail -1</code> which does the trick, but I've been wondering if there's a Bash tool that specifically extracts a line (or a range of lines) from a file.</p>
  
  <p>By "canonical" I mean a program whose main function is doing that.</p>