title: How to run a function with parameters with in a bash script
body: <p>I trying to run a function outside of my script. Example test.sh:</p>
  
  <pre><code>DAYS=10
  IP=1.2.3.4
  
  Main {
     functionName ${DAYS} ${IP}
     }
  
   functionName() {
     echo $1
     echo "$2"
     }
  </code></pre>
  
  <p>from command line I'm trying to run the scripts function with different parameters</p>
  
  <pre><code>./test.sh functionName 4 "1.3.4.5"
  </code></pre>
  
  <p>Having trouble getting it to work so any ideas would be great thanks</p>