Create a new Bash Shell Script eg. loopThroughArray.sh Open the Script with an Editor eg. GEdit Add the array definition through which the script should iterate array=( one two three four five ) The expression ${array[@]} contains all values within the array ${array[@]} Now we create a for loop to iterate through the array for num in ${array[@]} do echo $num done Once...
How to iterate through an array in a Bash Shell Script
H