Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Threads From Hell #2: How To Search A Very Huge File [SOLVED]

by karlgoethebier (Abbot)
on May 23, 2015 at 20:04 UTC ( [id://1127540]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    karls-mac-mini:monks karl$ ls -hl very_huge.file 
    -rw-r--r--  1 karl  karl   2,0G 23 Mai 19:38 very_huge.file
    ...
     
    karls-mac-mini:monks karl$ wc -l very_huge.file 
     100000001 very_huge.file
    
  2. or download this
    #!/usr/bin/env perl 
    
    ...
    Took 29.690 seconds
    ["nose cuke karl\n"]
    
  3. or download this
    karls-mac-mini:monks karl$ time grep karl very_huge.file 
    nose cuke karl
    ...
    real    0m2.563s
    user    0m2.176s
    sys    0m0.309s
    
  4. or download this
    PID      Prozessname       Benutzer   % CPU    Physikal. Speic Virt. S
    +peicher 
    1065   perl                      karl      12,7     10,3 MB         2,
    +33 GB          
    ...
    1069   perl                      karl      84,6     3,9 MB          2,
    +33 GB          
    1070   perl                      karl      83,5     3,9 MB          2,
    +33 GB          
    1071   perl                      karl      84,0     3,9 MB          2,
    +33 GB
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1127540]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found