Handy shell snippet
Submitted by luno on Mon, 06/16/2008 - 20:20.
Show the most-often-hit URLs from a squid proxy log:
tail -10000 access.log | awk '/GET.*DIRECT/ { i[$7]++;}; END{for (a in i) { if (i[a] > 100) printf("%-7s %s\n", i[a], a); }}' | sort -n