go ahead... be a heretic | |
PerlMonks |
Re: matching datetimestamps and concatenating data where timestamps match from multiple large datafilesby RichardK (Parson) |
on Sep 22, 2013 at 12:19 UTC ( [id://1055181]=note: print w/replies, xml ) | Need Help?? |
I assume that your files must be already sorted as they're log files, then what you are trying to do is a type of Merge Sort You can then process you files one line at a time. Read the current line for fileA and decide if you want to write the current lines for fileB and fileC, and when you write a line from a file get the next one. Keep going until you run out of lines.
In Section
Seekers of Perl Wisdom
|
|