#!/bin/bash cat nowcoder.txt | awk '{print $2}' | sort | uniq -c | sort | awk ' { if ($1>1){ print $0 } }' | awk '{print $1, $2}'