Help for this page

Select Code to Download


  1. or download this
    print "Num. Line : $. - Occ : $counter2\n";
    
  2. or download this
    unzip -p 10-million-combos.txt.zip | perlscript
    
  3. or download this
    $ unzip -p 10-million-combos.txt.zip | time grep -c 123456$
    0
    ...
    $ unzip -p 10-million-combos.txt.zip | time perl -ne 'BEGIN{$n=0} $n++
    + if /123456$/; END{print "$. lines, $n matches\n"}'
    9835513 lines, 0 matches
            1.93 real         1.90 user         0.02 sys