Help for this page

Select Code to Download


  1. or download this
    my $cmd = "cat /tmp/win.log /tmp/lnx.log | grep -v "/" . $nextmonth . 
    +"/" | sort -k4.2 > /export/w3logs/" . $year . $month . ".log";
    system($cmd);
    
  2. or download this
    open the log files and the output file.
    read in each log file into a hash with the key based on the date of th
    +e item
    sort the hash keys and write the values to the output file