9951 explained code solutions for 126 technologies


bashHow to iterate through an array of strings


declare -a arrary=("string1" "string2" "string3")
for i in "${array[@]}"; do echo "$i"; donectrl + c
declare -a arrary

create test array of strings

for i in "${array[@]}";

iterate through $array

echo "$i"

replace with your code to manipulate on each array element