Help for this page

Select Code to Download


  1. or download this
        for loop over records from metadata table {
        slurp $docid.txt (from pdftotext) into $contents;
    ...
            print "$textfile didn't contain $s\n";
        }
        }
    
  2. or download this
        my @s = split(/\W+/, $s);
        foreach $word (@s){
    ...
            }
        }
        print "pos = ", pos $contents, ",$s|" unless $nomatch;
    
  3. or download this
    real    0m0.150s
    user    0m0.044s
    sys    0m0.068s
    
  4. or download this
    time tr -d '\n' < 250234.txt | egrep 'the...pattern'
    real    0m7.178s
    ...
    real    0m0.027s
    user    0m0.012s
    sys    0m0.008s