Suppose you have a text file and you need to remove all of its duplicate lines.
TL;DR
To remove the duplicate lines while preserving their order in the file, use:
Suppose you have a text file and you need to remove all of its duplicate lines.
To remove the duplicate lines while preserving their order in the file, use: