Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Remove Duplicate Lines from a File

Aug
2,294
111
XSORT, a command introduced in v33,
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
 
Back
Top