Bash Script Loop Through Array Of Objects