Arrays
Defining an array:
my_array=(apple banana cherry)Iterating over an array:
for fruit in ${my_array[@]}; do
echo "I ate the ${fruit}"
doneReferences:
Defining an array:
my_array=(apple banana cherry)Iterating over an array:
for fruit in ${my_array[@]}; do
echo "I ate the ${fruit}"
doneReferences: