title: How can i print all the even positions of an array?
body: <p>I want to execute a Bash script with <code>bash launch_script_even.sh one two three four five six seven eight</code>. It needs to put <code>one two three four five six seven eight</code> in  a array and print only <code>two four six eight</code>.(the even positions of the array)</p>
  
  <p>The result in console:</p>
  
  <pre><code>Launch_script_even
  arguments:8
  two four six eight
  </code></pre>
  
  
  
  <pre><code>echo "name of script is $0"
  echo "arguments:$#"
  echo "$@"
  echo "...
  </code></pre>