Linux Shell统计Apache访问日志的IP

阅读更多
192.168.10.2 - - [14/Mar/2014:05:14:47 +0800] "GET / HTTP/1.1" 403 3985 "-" "ELinks/0.12pre5 (textmode; Linux; -)"
192.168.10.1 - - [14/Mar/2014:05:15:03 +0800] "GET / HTTP/1.1" 403 3985 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [14/Mar/2014:05:15:04 +0800] "GET /icons/apache_pb2.gif HTTP/1.1" 200 1797 "http://192.168.10.2/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [14/Mar/2014:05:15:04 +0800] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [14/Mar/2014:05:15:05 +0800] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [14/Mar/2014:05:15:05 +0800] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.2 - - [18/Mar/2014:00:59:06 +0800] "GET / HTTP/1.1" 403 3985 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:00:59:06 +0800] "GET /icons/apache_pb2.gif HTTP/1.1" 200 1797 "http://192.168.10.2/" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:00:59:06 +0800] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:00:59:06 +0800] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:00:33 +0800] "GET / HTTP/1.1" 200 9 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:00:47 +0800] "GET /default HTTP/1.1" 404 284 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:00:52 +0800] "GET /default.php HTTP/1.1" 200 253 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:07:38 +0800] "GET /default.php HTTP/1.1" 200 608 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:11:55 +0800] "GET /default.php HTTP/1.1" 200 608 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:11:55 +0800] "GET /default.php HTTP/1.1" 200 608 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:11:56 +0800] "GET /default.php HTTP/1.1" 200 608 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:11:56 +0800] "GET /default.php HTTP/1.1" 200 608 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:11:56 +0800] "GET /default.php HTTP/1.1" 200 608 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:11:56 +0800] "GET /default.php HTTP/1.1" 200 608 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:11:56 +0800] "GET /default.php HTTP/1.1" 200 608 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:12:44 +0800] "GET /default.php HTTP/1.1" 200 759 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:12:44 +0800] "GET /default.php HTTP/1.1" 200 759 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:12:47 +0800] "GET /del.php?id=%C3%A5%C2%BC%C2%A0%C3%A4%C2%B8%E2%82%AC HTTP/1.1" 200 10 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:18:04 +0800] "GET /del.php?id=%C3%A5%C2%BC%C2%A0%C3%A4%C2%B8%E2%82%AC HTTP/1.1" 200 10 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:19:39 +0800] "GET /del.php?id=%C3%A5%C2%BC%C2%A0%C3%A4%C2%B8%E2%82%AC HTTP/1.1" 200 10 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:22:00 +0800] "GET /index.php HTTP/1.1" 200 9 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:29:45 +0800] "GET /mod1.php?id=%C3%A5%C2%BC%C2%A0%C3%A4%C2%B8%E2%82%AC HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:31:13 +0800] "GET /index.php HTTP/1.1" 200 9 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:31:26 +0800] "GET /default.php HTTP/1.1" 200 759 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:01:55:06 +0800] "GET /del.php?id=%C3%A5%C2%BC%C2%A0%C3%A4%C2%B8%E2%82%AC HTTP/1.1" 200 10 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:02:19:00 +0800] "GET /del.php?id=%C3%A5%C2%BC%C2%A0%C3%A4%C2%B8%E2%82%AC HTTP/1.1" 200 10 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:26:55 +0800] "GET /default.php HTTP/1.1" 200 759 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:26:58 +0800] "GET /del.php?id=%C3%A5%C2%BC%C2%A0%C3%A4%C2%B8%E2%82%AC HTTP/1.1" 200 10 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:29:34 +0800] "GET /default.php HTTP/1.1" 200 759 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:29:39 +0800] "GET /del.php?id=%C3%A5%C2%BC%C2%A0%C3%A4%C2%BA%C5%92 HTTP/1.1" 200 10 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:33:17 +0800] "GET /default.php HTTP/1.1" 200 759 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:33:22 +0800] "GET /del.php?id=%C3%A5%C2%BC%C2%A0%C3%A4%C2%BA%C5%92 HTTP/1.1" 200 10 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:36:25 +0800] "GET /default.php HTTP/1.1" 200 759 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:36:27 +0800] "GET /del.php?id=%E5%BC%A0%E4%BA%8C HTTP/1.1" 200 13 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:37:00 +0800] "GET /del.php?id=%E5%BC%A0%E4%BA%8C HTTP/1.1" 200 16 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:37:46 +0800] "GET /default.php HTTP/1.1" 200 731 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:37:47 +0800] "GET /default.php HTTP/1.1" 200 731 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:37:47 +0800] "GET /default.php HTTP/1.1" 200 731 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:37:47 +0800] "GET /default.php HTTP/1.1" 200 731 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:37:50 +0800] "GET /del.php?id=2 HTTP/1.1" 200 9 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:37:55 +0800] "GET /default.php HTTP/1.1" 200 419 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:37:58 +0800] "GET /del.php?id=1 HTTP/1.1" 200 9 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:37:58 +0800] "GET /del.php?id=1 HTTP/1.1" 200 9 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:00 +0800] "GET /default.php HTTP/1.1" 200 253 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:01 +0800] "GET /default.php HTTP/1.1" 200 253 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:57 +0800] "GET /default.php HTTP/1.1" 200 691 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:58 +0800] "GET /default.php HTTP/1.1" 200 691 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:59 +0800] "GET /default.php HTTP/1.1" 200 691 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:59 +0800] "GET /default.php HTTP/1.1" 200 691 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:59 +0800] "GET /default.php HTTP/1.1" 200 691 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:59 +0800] "GET /default.php HTTP/1.1" 200 691 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:59 +0800] "GET /default.php HTTP/1.1" 200 691 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:59 +0800] "GET /default.php HTTP/1.1" 200 691 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:38:59 +0800] "GET /default.php HTTP/1.1" 200 691 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:41:26 +0800] "GET /default.php HTTP/1.1" 200 799 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:41:26 +0800] "GET /default.php HTTP/1.1" 200 799 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:41:26 +0800] "GET /default.php HTTP/1.1" 200 799 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:41:30 +0800] "GET /add.php? HTTP/1.1" 404 284 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:42:54 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:42:55 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:42:56 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:42:57 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:43:01 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:43:02 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:44:32 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:44:33 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:44:33 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:44:57 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:44:58 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:44:58 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:45:07 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:46:37 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:46:37 +0800] "GET /default.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
1
192.168.10.2 - - [18/Mar/2014:03:53:39 +0800] "GET /add.php? HTTP/1.1" 200 7 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:54:26 +0800] "GET /mod1.php?id=%E5%BC%A0%E4%B8%89 HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:55:33 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:58:24 +0800] "POST /mod2.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:58:29 +0800] "POST /mod2.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:59:13 +0800] "POST /mod2.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:59:17 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:03:59:22 +0800] "POST /add1.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:00:20 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:00:28 +0800] "POST /add1.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:02:37 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:02:48 +0800] "POST /add1.php HTTP/1.1" 200 16 "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:03:03 +0800] "POST /add1.php HTTP/1.1" 200 16 "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:07:04 +0800] "POST /add1.php HTTP/1.1" 200 28 "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:08:44 +0800] "POST /add1.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:12:33 +0800] "POST /add1.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:12:35 +0800] "GET /default.php HTTP/1.1" 200 727 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:12:36 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:12:49 +0800] "POST /add1.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:12:53 +0800] "GET /default.php HTTP/1.1" 200 727 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:12:56 +0800] "GET /mod1.php?id=%E5%BC%A0%E4%BA%8C HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:14:29 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:15:25 +0800] "POST /add1.php HTTP/1.1" 200 25 "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:16:59 +0800] "POST /add1.php HTTP/1.1" 200 25 "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:17:14 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:17:15 +0800] "POST /add1.php HTTP/1.1" 200 25 "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:18:53 +0800] "POST /add1.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:18:56 +0800] "POST /add1.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:19:00 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:19:02 +0800] "POST /add1.php HTTP/1.1" 500 - "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:19:51 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:20:12 +0800] "POST /add1.php HTTP/1.1" 200 32 "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:25:44 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:25:58 +0800] "POST /add1.php HTTP/1.1" 200 20 "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:30:18 +0800] "GET /mod1.php?id=%E5%BC%A0%E4%B8%80 HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:51:26 +0800] "GET /mod1.php?id=%E5%BC%A0%E4%B8%89 HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:51:44 +0800] "POST /mod2.php HTTP/1.1" 500 - "http://192.168.10.2/mod1.php?id=%E5%BC%A0%E4%B8%89" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:51:52 +0800] "POST /mod2.php HTTP/1.1" 500 - "http://192.168.10.2/mod1.php?id=%E5%BC%A0%E4%B8%89" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:52:57 +0800] "GET /mod2.php HTTP/1.1" 200 14 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:53:00 +0800] "POST /mod2.php HTTP/1.1" 200 31 "http://192.168.10.2/mod1.php?id=%E5%BC%A0%E4%B8%89" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:53:09 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.2 - - [18/Mar/2014:04:53:29 +0800] "POST /add1.php HTTP/1.1" 200 16 "http://192.168.10.2/add.php?" "Mozilla/5.0 (X11; Linux i686; rv:10.0.5) Gecko/20120601 Firefox/10.0.5"
192.168.10.1 - - [18/Mar/2014:04:55:40 +0800] "GET / HTTP/1.1" 200 9 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [18/Mar/2014:04:55:41 +0800] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [18/Mar/2014:04:55:41 +0800] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [18/Mar/2014:04:55:41 +0800] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [18/Mar/2014:04:57:24 +0800] "GET /default.php HTTP/1.1" 200 1034 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [18/Mar/2014:04:57:33 +0800] "GET /add.php? HTTP/1.1" 200 347 "http://192.168.10.2/default.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
192.168.10.1 - - [18/Mar/2014:04:57:48 +0800] "GET /del.php?id=1 HTTP/1.1" 200 9 "http://192.168.10.2/default.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"

对其访问的IP进行统计
cat  /var/log/httpd/access_log-20140323  | awk '{print $1}' | uniq -c | sed 's#^\s*##'| sort -n   -k 1 -t:

你可能感兴趣的:(linux,shell)