Re: sorting a file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> 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... missed the 'each IP'
go for Stephen solution  ^_^

JD


      

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux