Find duplicate or unique records in unix sort…


rencontre japonaise à roanne Find duplicate or unique records in unix

Piazza Armerina sort is essential because uniq find successive identical lines.
Unique records

cat data.txt | sort | uniq

Duplicate records

cat data.txt | sort | uniq -d

Leave a Reply

Your email address will not be published. Required fields are marked *