Trick to remove duplicates in a file

remove duplicates


sort -k 1.1,1.8 -u file > newfile