Thursday, September 13, 2012

How do you remove duplicate lines in a file in UNIX without changing order of contents?

awk '!x[$0]++' <FileName> > <New FileName>

No comments :