Bash Loop Over Array Of Pointers