Help for this page

Select Code to Download


  1. or download this
    1. read a log file
    2. search the logfile.txt for a specific string, in this case the stri
    +ng "TWO"
    3. extract record that contains the string "TWO" from log file into an
    +other file
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    
    while $fh->getline;
    $fh->close;
    
  3. or download this
    2007-Nov-07 00:00:00 UTC (GMT +0000) - Poll: channel = ONE, ref =
    2007-Nov-07 00:00:01 UTC (GMT +0000) - Poll: channel = TWO, ref =
    ...
    2007-Nov-07 00:00:03 UTC (GMT +0000) - Poll: channel = TWO, ref =
    2007-Nov-07 00:00:03 UTC (GMT +0000) - Poll: channel = TWO, ref =
    2007-Nov-07 00:00:04 UTC (GMT +0000) - Poll: channel = TWO, ref =