I have a log file where I get dates in following format in each line... I need to validate the date and see if they are between 5 PM to 9 AM. If it matches then I need to export the lines to another file. How do I do that?
2013-08-07 16:32:50
Above date it is 2013-08-07
04:32:50 PM which is greater than
2013-08-07 05:00:00 PM and less than 2013-08-08 09:00:00 AM. The
condition should be true..
2013-08-08 11:32:50
Above date it is 2013-08-08
11:32:50 AM which is greater than
2013-08-07 05:00:00 PM and greater than 2013-08-08 09:00:00 AM. The
condition should be false..
Hope its clear... :-)