#! /bin/bash cat nowcoder.txt | grep "23/Apr/2020:2" | awk -F "- -" '{ print $1 }' | sort | uniq | awk '{a++}END{print a}'