Help for this page

Select Code to Download


  1. or download this
    sub consolidate_logs ($$$) {
        my ($destination_file, $dir, $filename_str) = @_;
    ...
    
        close(OUT);
    }
    
  2. or download this
    sub consolidate_logs ($$$) {
        my ($destination_file, $dir, $filename_str) = @_;
    
        system("ls $dir | grep $filename_str | xargs -iX cat $dir/X >> $de
    +stination_file");
    }
    
  3. or download this
    sub split_logs ($$$) {
        my ($source_file, $business_list, $filename_prefix) = @_;
    ...
            print "Log for $name created at " . localtime() . "\n";
        }
    }