I have a text file that contains text like this (partial example):
12:38am 0.72
12:39am 0.60
12:40am 0.57
12:41am 0.53
12:42am 0.50
12:43am 0.65
12:44am 0.57
12:45am 0.67
12:46am 0.60
12:47am 0.58
12:48am 0.63
12:49am 0.53
12:50am 0.58
12:51am 0.59
12:52am 0.52
12:53am 0.57
12:54am 0.54
12:55am 0.53
12:56am 0.57
12:57am 0.54
12:58am 0.53
12:59am 0.68
1:00am 0.45
1:01am 0.67
1:02am 0.46
1:03am 0.46
1:04am 0.43
1:05am 0.37
1:06am 0.47
1:07am 0.43
1:08am 0.40
1:09am 0.41
1:10am 0.52
1:11am 0.38
1:12am 0.36
1:13am 0.37
1:15am 0.34
The collection begins at 12:00am and ends at 23:59pm. I need to extract only the lines between 08:00am and 16:59pm and save them to another file.
12:38am 0.72
12:39am 0.60
12:40am 0.57
12:41am 0.53
12:42am 0.50
12:43am 0.65
12:44am 0.57
12:45am 0.67
12:46am 0.60
12:47am 0.58
12:48am 0.63
12:49am 0.53
12:50am 0.58
12:51am 0.59
12:52am 0.52
12:53am 0.57
12:54am 0.54
12:55am 0.53
12:56am 0.57
12:57am 0.54
12:58am 0.53
12:59am 0.68
1:00am 0.45
1:01am 0.67
1:02am 0.46
1:03am 0.46
1:04am 0.43
1:05am 0.37
1:06am 0.47
1:07am 0.43
1:08am 0.40
1:09am 0.41
1:10am 0.52
1:11am 0.38
1:12am 0.36
1:13am 0.37
1:15am 0.34
The collection begins at 12:00am and ends at 23:59pm. I need to extract only the lines between 08:00am and 16:59pm and save them to another file.