in reply to progress bar for a system command

Since each individual log is sorted already you should not need to do so much work. The following outline should be sufficient:

open the log files and the output file. read first line of each log file. write oldest line to output file and read next line from corresponding + input file. repeat.

update: See Also File::MergeSort

Good Day,
    Dean