AP DS TECH bash – iterating over a string array ~~ April 25, 2020 123456789101112131415#declare -a myArrayList=( myArrayList=( # NEW ENTRIES BELOW THIS LINE Judy Bob "Adam Smith" Bonnie # NEW ENTRIES ABOVE THIS LINE ) ## IF YOU HAVE SPACES IN THE ITEMS - THE ITEM NEEDS TO BE QUOTED for item in "${myArrayList[@]}"; do echo $item done Related Posts:bash OSX iTerm2 - display inline images in terminalbash - awk with colored outputbash OSX: hours on a computer, list rebootsbash - pass arguments with flags to scriptOSX review login items via bash+applescriptbash - check that script is being executed by rootbash - using functions.DS_Store - BASH shell - Linux/OSX = Find & Remove Filesbash - awk if then else snippet