All,
I am trying to do the following in a simple perl script. But as i am very basic to perl i am having tough time getting through.
sample Input files
-----------------
Hello i am fine
JOE::1:122,2:2,3:18,4:37,
i am doing great here
JOE::2:11,3:3,4:3,5:28,6:2
JOE::1:1234,5:12
----------
All i need to do is this
Open a File X
Grep for JOE
And get the total count by respective identifiers. in the above case identifiers are 1,2,3,4,5,6 and the individual counts are the numbers beside them
the final result for the above case should be
1:1356,2:13,3:21,4:40,5:40,6:2
Thanks for any help
logic4fun
{
I am trying to do the following in a simple perl script. But as i am very basic to perl i am having tough time getting through.
sample Input files
-----------------
Hello i am fine
JOE::1:122,2:2,3:18,4:37,
i am doing great here
JOE::2:11,3:3,4:3,5:28,6:2
JOE::1:1234,5:12
----------
All i need to do is this
Open a File X
Grep for JOE
And get the total count by respective identifiers. in the above case identifiers are 1,2,3,4,5,6 and the individual counts are the numbers beside them
the final result for the above case should be
1:1356,2:13,3:21,4:40,5:40,6:2
Thanks for any help
logic4fun
{