title: Bash get last line from a variable
body: <p>If I have a variable with multiple lines (text) in it, how can I get the last line out of it?</p>
  
  <p>I already figured out how to get the first line:</p>
  
  <pre><code>STRING="This is a
  multiple line
  variable test"
  FIRST_LINE=(${STRING[@]})
  echo "$FIRST_LINE"
  
  # output:
  "This is a"
  </code></pre>
  
  <p>Probably there should be an operator for the last line. Or at least I assume that because with <code>@</code> the first line comes out.</p>