Skip to content

Instantly share code, notes, and snippets.

@poliu2s
Created February 11, 2014 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save poliu2s/8930585 to your computer and use it in GitHub Desktop.
Save poliu2s/8930585 to your computer and use it in GitHub Desktop.
Count number of unique IPs in Apache access log
awk '{!a[$1]++}END{for(i in a) if ( a[i] >10 ) print a[i],i }' file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment