in reply to Re: Re: Detecting duplicate entries
in thread Detecting duplicate entries
sort -uo file.txt file.txt
Update: For those that asked,
sort -u file.txt > file.txt
will completely and happily change file.txt
into a zero byte file, hence the need for
the "o" flag.
|
|---|