Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: opinion - enormous input files

by artist (Parson)
on Feb 01, 2009 at 04:37 UTC ( #740504=note: print w/ replies, xml ) Need Help??


in reply to opinion - enormous input files

If on *nix you can use

sort file | uniq -c
--Artist


Comment on Re: opinion - enormous input files
Download Code
Re^2: opinion - enormous input files
by dsheroh (Parson) on Feb 01, 2009 at 14:02 UTC
    No, he wants to do it in perl:
    perl -e 'print `sort file | uniq -c`'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2014-07-10 04:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (198 votes), past polls