#!/bin/bash
# 前面用grep也可以,用cut也可以
awk -F ":" '/tcp/{print $2}' nowcoder.txt |awk '{print $2}' |sort |uniq -c |sort -nr |awk '{print $2,$1}'