题目来源:牛客网 题解: awk '{ if(substr($4, 2, 11) == "23/Apr/2020") temp[$1]++; }END{ for(i in temp){ print temp[i] " " i } }' nowcoder.txt | sort -nr -k1