Created
March 19, 2014 20:36
-
-
Save pimiento/9650632 to your computer and use it in GitHub Desktop.
find the most active IP address from an access.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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