timecat icon indicating copy to clipboard operation
timecat copied to clipboard

Absence of new line character at the end of file may cause failure

Open fanfank opened this issue 9 years ago • 0 comments

timecat fails in the following situation:
timecat -s '2016-10-16 11:00:02' -e '2800-10-16 11:00:00' x.log

The following is the x.log(no new line at the end of file!):

2016-10-16 11:00:00 this is record 0
2016-10-16 11:00:01 this is record 1
2016-10-16 11:00:21 this is record 2
2016-10-16 11:03:02 this is record 3
2016-10-16 11:03:05 this is record 4
2016-10-16 11:05:01 this is record 5
2016-10-16 11:06:10 this is record 6
2016-10-16 12:15:30 this is record 7
2016-10-16 12:30:35 this is record 8
2016-10-16 20:18:06 this is record 9
2016-10-16 21:00:00 this is record 10
2016-10-16 23:59:59 this is record 11
2016-10-17 00:00:00 this is record 12
2016-10-17 01:50:10 this is record 13
2016-10-17 08:31:34 this is record 14
2016-10-18 17:10:10 this is record 15
2016-10-18 18:20:50 this is record 16
2016-10-19 03:15:40 this is record 17
2016-10-19 03:15:40 this is record 18
2016-10-20 10:00:00 this is record 19

fanfank avatar Oct 20 '16 17:10 fanfank