I need to find out how many times an IP address appears in a file - the
IP is the first field in the access log string so what would be the best
way to sort this file and count how many times each IP address appears ?
thanks
___
CentOS mailing list
On Fri, Apr 03, 2009 at 11:50:46AM +0100, Tom Brown wrote:
I need to find out how many times an IP address appears in a file - the
IP is the first field in the access log string so what would be the best
way to sort this file and count how many times each IP address appears ?
Depends on what
From: Tom Brown t...@ng23.net
I need to find out how many times an IP address appears in a file - the
IP is the first field in the access log string so what would be the best
way to sort this file and count how many times each IP address appears ?
grep ^IP | wc -l
JD
From: Tom Brown
I need to find out how many times an IP address appears in a file - the
IP is the first field in the access log string so what would be the best
way to sort this file and count how many times each IP address appears ?
grep ^IP | wc -l
Oops, replied too quickly...
I need to find out how many times an IP address appears in a file -
the
IP is the first field in the access log string so what would be the
best
way to sort this file and count how many times each IP address
appears ?
I always solve a problem like this with a small Perl script. It
Oops, replied too quickly... missed the 'each IP'
go for Stephen solution ^_^
yeap - thanks both
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
6 matches
Mail list logo