shamusliketry
MIS
Greetings,
I have this file that i sorted using perl. the output looks like this:
00:08:30 64.60.192.130(53766)
00:09:30 66.146.162.178(3951)
00:10:44 66.248.53.189(3533)
00:11:20 66.63.165.133(1409)
00:11:27 66.63.165.133(1830)
00:11:34 66.63.165.133(2277)
00:11:42 66.63.165.133(2738)
00:12:52 68.248.232.118(4494)
00:13:04 193.6.38.80(3001)
00:13:06 193.6.38.80(3001)
00:13:08 193.6.38.80(3001)
00:13:10 193.6.38.80(3001)
I am trying to create a shell or perl script that will go through each line, return the ip, and how many times it appeared on the list. I am new to if and else statements, so any help would be greatly appreciated. Thanks.
--Mike
I have this file that i sorted using perl. the output looks like this:
00:08:30 64.60.192.130(53766)
00:09:30 66.146.162.178(3951)
00:10:44 66.248.53.189(3533)
00:11:20 66.63.165.133(1409)
00:11:27 66.63.165.133(1830)
00:11:34 66.63.165.133(2277)
00:11:42 66.63.165.133(2738)
00:12:52 68.248.232.118(4494)
00:13:04 193.6.38.80(3001)
00:13:06 193.6.38.80(3001)
00:13:08 193.6.38.80(3001)
00:13:10 193.6.38.80(3001)
I am trying to create a shell or perl script that will go through each line, return the ip, and how many times it appeared on the list. I am new to if and else statements, so any help would be greatly appreciated. Thanks.
--Mike