cat /usr/local/var/log/nginx/access.log|sort -nrk9|head -2
< hr >
what I wonder about is sort-nrk9;
-nrk. I know what this 9 means. What does this 9 stand for?
here is the format of nginx log
log_format main "$remote_addr - $remote_user [$time_local] "$request" "
"$upstream_response_time "
"$status $body_bytes_sent "$http_referer" "
""$http_user_agent" "$http_x_forwarded_for"";