shell script for each in array