0

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

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