This command will read the file cdp.txt, perform a unique sort on column 2 using a space as a delimiter:
sort -u -t ‘ ‘ -k2 cdp.txt
This command will read the file cdp.txt, perform a unique sort on column 2 using a space as a delimiter:
sort -u -t ‘ ‘ -k2 cdp.txt