grep "23/Apr/2020:2[0-3]" nowcoder.txt | awk '{print $1}' | sort | uniq | wc -l
当重复的行不相邻时,uniq 命令不起作用,所以需要结合sort使用