I have two scripts running, both of which output a log file.  I'd like to make a third script that can sort these logs by time stamp and merge them into one file as they are created.  What is a good way to do this, ideally without overwriting the file constantly?
What is a good way to sort two log files as they are created?
logs;sort