Take a look at the
uniq command. If you have the names in a file, once per line you can simply try:
Code:
uniq <(sort filename)
The sorting is needed because uniq remove
adjacent duplicates. If you don't want to sort the output, try awk as in:
Code:
awk '!_[$1]++' filename