title: How to display only the last field?
body: <p>I used</p>
  
  <pre><code>cut -d " " -f 8
  </code></pre>
  
  <p>and</p>
  
  <pre><code>awk '{print $8}'
  </code></pre>
  
  <p>But this assumes that the 8th field is the last one, which is not always true.</p>
  
  <p>How can I display the last field in a shell script?</p>