#!/bin/bash
awk '/^tcp/ {a[$NF]++} END {for (k in a) print k, a[k]}' nowcoder.txt | sort -rn -k2