Linux: Remove duplicate lines from a text file using awk or perl

1119

I have a text file with exact duplicates of lines. I need to remove all those duplicates lines and preserves the order too on Linux or Unix-like system. How do I delete duplicate lines from a text file?

Read more…