#nginx 日志格式 192.168.1.1 - - [25/Dec/2019:23:00:12 +0800] "GET / HTTP/1.0" 200 241 "-" "-" 192.168.1.2 - - [25/Dec/2019:23:21:49 +0800] "GET / HTTP/1.0" 200 241 "-" "-" #命令 awk '{split($4,array,"[");if(array[2]>="23/Dec/2019:06:41:05" && array[2]<="24/Dec/2019:07:44:53"){print $0}}' access.log