AMP AMP
AMP
0
AMP

delete duplicate lines

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

Command Line Tools Add a comment
a sample image
beulah
asked Sep 21 2018

Answer

AMP
0
AMP

Try using the below command

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