cat user.txt | sort | uniq -c | sort -rn | top -n 3
cat user.txt | count -n | sort -rn | head -n 3
uniq -c user.txt | sort -nr | top -n 3
sort user.txt | uniq -c | sort -rn | head -n 3