|
|
| No such thing as a small change | |
| PerlMonks |
How to match the each line of of users for a perticular time with predeclared group.by perladdict (Chaplain) |
| on Jan 18, 2007 at 16:41 UTC ( #595282=perlquestion: print w/ replies, xml ) | Need Help?? |
|
perladdict has asked for the
wisdom of the Perl Monks concerning the following question:
Hi Monks,
I have one file which contains the information of all the users who r login to the machine in between 10 minutes,the file contains fallowing format time maxusrat_a_time loggeduser usernames 1.00 50 10 x,y,z,w,u,e,g,j,k,a 1.10 50 13 x,y,b,a,g,j,k,r,,n,m,s, 1.20 50 05 c,t,g,q,f 1.50 50 08 a,t,y,w,z,x,s,b 2.00 50 14 x,y,u,b,g,f,s,a,i,o,p,c from the above file i grouped the usernames in to 3 groups so,that i want to calculate for a perticilar intervel how meny of group1 ,group2 and group3 are loggedin to the server. i need result like below 1.00 5(group1)user,5(group2)users are logged in fallowing is the code i am trying to solve the solution keep pouring your ideas.......
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||