[CentOS] sorting a file
John Doe
jdmls at yahoo.comFri Apr 3 11:07:53 UTC 2009
- Previous message: [CentOS] sorting a file
- Next message: [CentOS] sorting a file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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
- Previous message: [CentOS] sorting a file
- Next message: [CentOS] sorting a file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list