awk 'BEGIN{FS="|;"} {++state[substr($1,0,10)]} END {for(key in state) print key,"\t",state[key]}' _jboss_openresty_nginx_logs_process.2016-10-23.log
转载于:https://my.oschina.net/innovation/blog/775049
awk 'BEGIN{FS="|;"} {++state[substr($1,0,10)]} END {for(key in state) print key,"\t",state[key]}' _jboss_openresty_nginx_logs_process.2016-10-23.log
转载于:https://my.oschina.net/innovation/blog/775049