0

delete duplicate lines

How can I delete duplicate lines in a file in Linux? 

Command Line Tools Add a comment
beulah
asked Sep 21 2018

Answer

0

Try using the below command

awk '!seen[$0]++' new.txt
Add a comment
gokulravichandran2
asked Sep 23 2018
edited Oct 30 2018
Post your Answer