myArray=("cat" "dog" "mouse" "frog)
for str in ${myArray[@]}; do
echo $str
done
references
https://www.freecodecamp.org/news/bash-array-how-to-declare-an-array-of-strings-in-a-bash-script/
No comments:
Post a Comment