Search String between two string in different file
I am writing a python script and have got stucked at one point. My objective here is to find or search a string or a expression between two dates/time. I can do this using "sed" but my problem is the start time and the end time can be in two different files. Thing is I am generating some logs and that logs are printed in some file with time stamp at every line. IF the limit of file reaches at certain number of lines we start writing the logs in different file. Now to search for a pattern or expression between two start time and end time I am not sure whether it is in same file or different file. Can anyone suggest me how can I approach this and can do it.

Thanks
Akansha
Search String between two string in different file
===

I am writing a python script and have got stucked at one point. My objective here is to find or search a string or a expression between two dates/time. I can do this using "sed" but my problem is the start time and the end time can be in two different files. Thing is I am generating some logs and that logs are printed in some file with time stamp at every line. IF the limit of file reaches at certain number of lines we start writing the logs in different file. Now to search for a pattern or expression between two start time and end time I am not sure whether it is in same file or different file. Can anyone suggest me how can I approach this and can do it.

Thanks
Akansha