title: Remove the last line from a file in Bash
body: <p>I have a file, <code>foo.txt</code>, containing the following lines:</p>
  
  <pre><code>a
  b
  c
  </code></pre>
  
  <p>I want a simple command that results in the contents of <code>foo.txt</code> being:</p>
  
  <pre><code>a
  b
  </code></pre>