I have a file with 1000s of lines on it.
Each line is an IP address.
How would I go about getting a summary report of the number of times each IP appears in the list?
For example, the file looks like this:
68.210.101.222
68.210.101.222
67.117.110.152
67.117.110.152
24.207.128.236
24.184.169.117
24.207.128.236
198.81.26.7
24.184.169.117
65.49.54.66
How would I get something along the lines of:
68.210.101.222 - 2
67.117.110.152 - 2
24.207.128.236 - 2
24.184.169.117 - 2
198.81.26.7 - 1
65.49.54.66 - 1
???
Thanks for any help..
Each line is an IP address.
How would I go about getting a summary report of the number of times each IP appears in the list?
For example, the file looks like this:
68.210.101.222
68.210.101.222
67.117.110.152
67.117.110.152
24.207.128.236
24.184.169.117
24.207.128.236
198.81.26.7
24.184.169.117
65.49.54.66
How would I get something along the lines of:
68.210.101.222 - 2
67.117.110.152 - 2
24.207.128.236 - 2
24.184.169.117 - 2
198.81.26.7 - 1
65.49.54.66 - 1
???
Thanks for any help..