I have log files more than 10GB. each line of a file start with date and time like
2014-12-12 18:17:56 xxxxxxxxxxxxxxxxxxxxxxxxxx
2014-12-12 18:17:57 xxxxxxxxxxxxxxxxxxxxxxxxxx
2014-12-12 18:17:58 xxxxxxxxxxxxxxxxxxxxxxxxxx
2014-12-21 18:17:57 xxxxxxxxxxxxxxxxxxxxxxxxxx
2014-12-21 18:17:57 xxxxxxxxxxxxxxxxxxxxxxxxxx
2014-12-21 18:17:58 xxxxxxxxxxxxxxxxxxxxxxxxxx
2014-12-21 18:17:59 xxxxxxxxxxxxxxxxxxxxxxxxxx
I want read and view the logs for a period example from start-date-time(2014-12-12 18:17:57) to end-date-time(2014-12-21 18:17:58)
I can explode file into array and do the task, but I need best solution with less memory usage.
Please help me on it
Thanks in advance