- Aug
- 2,294
- 111
XSORT, a command introduced in v33,
can remove duplicate lines from a text file.
Another example;
Joe
can remove duplicate lines from a text file.
Code:
R:\>type test.txt
Line 1
Line 2
Line 3
Line 4
Line 2
Line 4
R:\>xsort /d test.txt
Line 1
Line 2
Line 3
Line 4
Another example;
Code:
R:\>xsort /d test.txt > tmp9:
R:\>type tmp9:
Line 1
Line 2
Line 3
Line 4
Joe