I\'ve got almost the same question as here.
I have an array which contains aa ab aa ac aa ad, etc. Now I want to select all unique elements from this ar
aa ab aa ac aa ad
Try this to get uniq values for first column in file
awk -F, '{a[$1];}END{for (i in a)print i;}'