i have a big file 50G and i want to get the duplicate line and rest of file i use two command to get the result and that Take a long time.
sort file.tsv | uniq -d > duplicateList.tsv
sort file.tsv | uniq -u > clean_List.tsv
As you can see the process repeated twice , i want to make only one commande and return the both result without using duplicate commande
note i can use linux commande or Python script