Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
       grep { m{^fileid} .. m{^-----} and m{pattern} } <>;
    
    print for @wantedLines;
    
  2. or download this
    $ cat spw765108.log 
    a line
    ...
    a pattern outside our bounds
    last line
    $
    
  3. or download this
    $ ./spw765108 spw765108.log 
    a pattern we want
    another wanted pattern
    $