Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: array processing

by McDarren (Abbot)
on Dec 06, 2005 at 11:51 UTC ( [id://514412]=note: print w/replies, xml ) Need Help??


in reply to array processing

Of course, if you are in a *nix shell, you could do this straight from the command line without using Perl at all. I'm no whiz at this sort of thing, so the following could probably be shortened quite a bit - but it should give you the idea:
grep 'Login succeeded' log | awk '{print $7}' | sed s/,// | sort | uni +q -c 1 abc 1 qwr 6 sa 1 xyz

Cheers,
Darren :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://514412]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-23 20:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found