I am completely new to python and I have a serious problem which I cannot solve.
I have a few log files with identical structure:
[timestamp] [level] [source] message
For example:
[Wed Oct 11 14:32:52 2000] [error] [client 127.0.0.1] error message
I need to write a program in pure Python which should merge these log files into one file and then sort the merged file by timestamp. After this operation I wish to print this result (the contents of the merged file) to STDOUT (console).
I don't understand how to do this would like help. Is this possible?