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: process each line as result of command using IFS=BASH snippet - clean up stereo pairs and sort by…bash: for - looping over and processing files in…bash - check that script is being executed by rootOSX Bash - commands I didn't know before (or saw…bash OSX iTerm2 - display inline images in terminalBash Substring Matching within StringOSX system volume (sound) GET / SET via Terminal / bashbash - awk if then else snippet