#! /bin/bash filename="nowcoder.txt" cat $filename | grep "23/Apr/2020" | awk -F " " '{print $1}' | sort | uniq -c | sort -r | awk '{print $1,$2}'