题解 | #netstat练习2-很吊的解法#
netstat练习2-查看和3306端口建立的连接
https://www.nowcoder.com/practice/534b95941ffb495b9ba57fbfc3cd723a
#!/bin/bash awk -F ' +|:' '/3306.+ESTABLISHED/{list[$6]++}END{for(i in list){print list[i]" "i}}' "./nowcoder.txt" | sort -k1 -n -r