awk ' {buffer[$(NF-1)]++} END { for(x in buffer) print buffer[x]"/t"x; }' access.log | awk ' /.*HIT.*/ {hitsum+=$1;print $0} /.*MISS.*/ {missum+=$1;print $0} END { print hitsum/(hitsum+missum)*100"%" }'
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/2492.html