I am stuck with logic realization in linux, bash. Actually I am new in shell scripting in linux.
The aim is to extract data from log file in specified range of time. Logfile: test.log It has huge data inside. Logic is job runs on 05-FEB-2016 at 9:00 AM, it checks target LOG file and extracts all lines between 04-FEB-2016 15:00:00 PM and 05-FEB-2016 09:00:00 AM.
I used the command:
sed -n '/Feb 04/,/Feb 05/p' test.log
But it does not do what I need. If someone came across with that problem, please share!
With regards!