title: if there are more than 2 but less than 4 arguments, output only the last argument (bash linux)
body: <p>create a script that does the following:</p>
  <p>takes any number of arguments</p>
  <p>if there are less than 2 arguments, output the values of these arguments</p>
  <p>if there are more than 2 but less than 4 arguments, output only the last argument</p>
  <p>else output &quot;Invalid number of arguments&quot; message</p>
  <pre><code>#!/bin/bash
  
  echo $#
  
  if (($# &lt;2)
  then
  echo $@
  fi
  
  **if (($# &gt;2 &lt;4)** DEFINETELY WRONG LINE
  then
  echo &quot;${@: -1}&quot; then
  else
  echo &quot;Invalid number of arguments&quot;
  fi
  </code></pre>