Skip to content

Instantly share code, notes, and snippets.

@pimiento
Created March 19, 2014 20:36
Show Gist options
  • Save pimiento/9650632 to your computer and use it in GitHub Desktop.
Save pimiento/9650632 to your computer and use it in GitHub Desktop.
find the most active IP address from an access.log
cat /tmp/access.log |sort |uniq -c|sort -nr | head -n1 | awk '{print $2 ": " $1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment