#!/bin/bash # adapted from: a Linux Journal article: # "Bash Arrays" - Mitch Frazier - June 2008 # # version as of end of W10-1 class, 2022-10-26 array=("first item" "second item" "third" "item" [6]="sixth") echo "" echo "number of items in original array: ${#array[*]}" for index in ${!array[*]} do printf " %s\n" "${array[$index]}" done # FINISH on WEDNESDAY!