To find duplicates you can use
sort | uniq -d
but is there a quick way to find triplicates?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use:
uniq -c gives you a count of occurences in the first column. The awk line filters all lines with has 3 in the first column.
If you want all items occuring 3 or more times write
$1 >= 3You can also pick out just the items names with (if they are just one column with no spaces) with:
Ans so on …