duplines cli eliminates duplicate lines in a file and keeps the sorting order
+-------+
| |
| foo |
| bar | +-------+
| bar | | |
| foo | | foo |
| bar +------------->+ bar |
| baz | | baz |
| foo | | |
| bar | +-------+
| |
+-------+
Simply run:
$ pip install duplines
To use it:
$ duplines --help