bash print unique entries in specific column

C++
# Short answer:
# An easy way to do this is with an awk array/dictionary. 
# Google: "bash print keys of awk array" for the Grepper answer on this
Source

Also in C++: