Ad

beulah
asked Sep 21 2018
Answer
Try using the below command
awk '!seen[$0]++' new.txt

gokulravichandran2
asked Sep 23 2018
edited Oct 30 2018
Try using the below command
awk '!seen[$0]++' new.txt
delete duplicate lines
How can I delete duplicate lines in a file in Linux?