Created
February 26, 2015 10:58
-
-
Save kxxoling/1422f4bde20f80f53c5e to your computer and use it in GitHub Desktop.
grep top 20 ip
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 localhost.access_log* |awk '{print $1 " " substr($4,14,5)}'|sort -n|uniq -c|sort -nr|head -20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment