Sunday, December 30, 2012

Delete duplicate lines in a file in Unix

awk '!x[$0]++' file.txt

No comments:

Post a Comment