Extract the logs that are logged within 2 timestamps
I am in a situation where I wrote a script to extract the lines within the specified time frame from a log file. This script works fine until i found that it is only printing the lines which has the timestamp that is logged within the specified time and leaves the lines which are not having a timestamp but logged within the specified time frame. Those lines which are not having a timestamp but present within the specified time frame must also be printed. But I don’t know how to achieve this.