<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=877281714-13122006>I'm trying to grep
some evil link spammer IPs out of an Apache log, and I'd like to reduce the
number of false positives by limiting the IPs to just a certain number of
hits to a file, say 10 hits to a Wordpress comment file, so I can do this and
see hits to that file, and order them by hits</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=877281714-13122006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=877281714-13122006>grep
wp-comments-post /var/log/httpd/access_log | cut "-d " -f2 | sort | uniq
-c | sort -nr | </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=877281714-13122006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=877281714-13122006>But after that last
pipe what I'd like to do is pull out just IPs with hits greater than 10. I can
do "head -20" but that'll only give me the top 20 and that can be any number of
hits.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=877281714-13122006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=877281714-13122006>Any ideas? Maybe I
need to approach it a different way altogether?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=877281714-13122006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=877281714-13122006>Thanks</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=877281714-13122006>Blake</SPAN></FONT></DIV></BODY></HTML>