How to remove the duplicates in text file having more than 700000 of records

Hi Team ,
I have a text file containing of more than 700000 of records ,Can some one help me in removing duplicate from file . We have tried with Uipath Activities but it didn’t help much it is taking more one hour to compete . Can some one help me to resolve this issue please?
@J0ska
Thanks .

Duplicate of How to remove duplicates in text file having more than 700000 of records