#!/bin/bash cat nowcoder.txt | grep -i 'tcp' | awk '{print $5}' | awk -F ':' '{print $1}' | sort | uniq -c | sort -nrk 1 | awk '{print $2,$1}'