I have a file like this:
80.13.178.2 80.13.178.2 80.13.178.2 80.13.178.2 80.13.178.1 80.13.178.3 80.13.178.3 80.13.178.3 80.13.178.4 80.13.178.4 80.13.178.7
Feed the output from uniq -cd to awk
uniq -cd
awk
sort test.file | uniq -cd | awk -v limit=2 '$1 > limit{print $2}'