I want filter a file, and delete (or write to another file), only strings which Date are "realy" smaller then Date now, lets say for 2 hours 30 minutes ago (150 minutes). I don't need command which can find something like absolute value "2017-03-21 04:36:19" - and then delete all lines before. Because it`s a big chance that lines is not exist (seconds, then minutes, and this filter give all the file without deleting).
I have data in next format:
2017-03-18 01:27:12 bla bla
2017-03-18 02:14:11 bla bla
2017-03-20 04:37:14 bla bla
2017-03-21 02:25:59 bla bla
2017-03-22 05:12:43 bla bla
Time format: %Y-%m-%d %H:%M:%S
I search on google, and try everything on first page by many search queries.