#! /bin/bash cat nowcoder.txt | awk -F "- -" '{ print $1 }' | sort | uniq -c | sort -nk 1 -r | awk '{ if($1>3){print $1" "$2} }'