#!/bin/bash
cat nowcoder.txt | grep "tcp"|awk '{a[$6]++}END{for(i in a)print i,a[i]}'| sort -rn -k2