Answers for "bash loop through matrix"

25

loop from array bash

#!/bin/bash
# declare an array called array and define 3 values
array=( one two three )
for i in "${array[@]}"
do
	echo $i
done
Posted by: Guest on April-13-2020
0

array and for loop bash

myArray=('Apple' 'Banana' 'Orange')
for i in "${myArray[@]}";
do
  echo $i
done
Posted by: Guest on February-27-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language