cat nowcoder.txt 
| grep tcp 
| awk '{print $NF}' 
| sort | uniq -c | sort -rn -k 1 
| awk '{print $NF,$(NF-1)}'

sort -n:-n, --numeric-sort 根据数字排序。