title: Removing a newline character at the end of a file
body: <p>To remove all newlines you could, say:</p>
  
  <pre><code>tr -d '\n' &lt; days.txt
  cat days.txt | tr -d '\n'
  </code></pre>
  
  <p>but how would you use <code>tr</code> to remove just the newline at the end/bottom of a text file?</p>
  
  <p>I'm not sure to specify just the last one.</p>