remove duplicated columns

hi all,

i have a file contain multicolumns, this file is sorted by col2 and col3.

i want to remove the duplicated columns if the col2 and col3 are the same in another line.

example
fileA

AA BB CC DD
CC XX CC DD
BB CC ZZ FF
DD FF HH HH

the output is
AA BB CC DD
BB CC ZZ FF
DD FF HH HH

thanks

uniq -f1 -f2 -c file1

it works but i have also in the file i get the occurence number of the line
can i remove it ??

just remove '-c' option

yes it work but the file a have have many columns and i want just to compare the colx and coly and ignor the rest what can i do, because f1 and f2 ignore the two first columns??

yes give the columns to be avoided with -f option.

i try sort -u -kx,y

with x and y are the columns numbers it works well