Bash Loop Over Array Of Pointers In Cpp