Tech notes

Daily notes about my IT activities.

2013-10-02

Get the most popular user agents from access.log of nginx

by hackprime

cat access.log | sed -E 's/.+("[^"]+")$/\1/g' | sort | uniq -c | sort -nrk1