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 - using functionsBash Substring Matching within Stringbash - pass arguments with flags to scriptbash OSX: hours on a computer, list rebootsbash - du to get space used by directorybash - df to get space usage by volumeBASH y/n select - on user inputbash - awk if then else snippetbash: process each line as result of command using IFS=