Re: counting ip addresses



On 27 Oct 2006 06:42:28 -0700, rogv24@xxxxxxxxx
<rogv24@xxxxxxxxx> wrote:
I am trying to write a routine to provide counts from a list of IP
addresses that are sorted.

example:

2.3.4.5
2.3.4.5
2.3.4.5
10.20.20.40
10.20.20.40

report would like this 2.3.4.5 - sum 3
10.20.20.40 - sum 2

Is this homework? It's simple in awk.


--
What kind of sordid business are you on now? I mean, man, whither
goest thou? Whither goest thou, America, in thy shiny car in the night?
-- Jack Kerouac
.