title: How to pass an array argument to the Bash script
body: <p>It is surprising me that I do not find the answer after 1 hour search for this.
  I would like to pass an array to my script like this:</p>
  
  <pre><code>test.sh argument1 array argument2
  </code></pre>
  
  <p>I DO NOT want to put this in another bash script like following:</p>
  
  <pre><code>array=(a b c)
  for i in "${array[@]}"
  do
    test.sh argument1 $i argument2
  done
  </code></pre>