Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    my @rows = split /^/ , $after_match;
    printf "Found %d lines after match in file.\n", scalar( @rows );
    
  2. or download this
    Test Log Header
    040702003113 21% 1175 1859 8239 8744 2221 0 0 4 100% 7% T 6%
    ...
    040702003113 21% 1175 1859 8239 8744 2221 0 0 4 100% 7% T 6%
    040702003113 21% 1175 1859 8239 8744 2221 0 0 4 100% 7% T 6%
    ...for 160 lines...
    
  3. or download this
    Output of "wc test_log.txt":
    161    2243    9776 test_log.txt
    
    Ouput of "test.pl":
    Found 34 lines after match in file.