Hi , I am having a script which will start a process and appends the process related logs to a log file. The log file writes logs with every line starting with date in the format of: date +"%Y %b %d %H:%M:%S".
So, in the script, before I start the process, I am storing the date as DATE=`date +"%Y %b %d %H:%M:%S"`
How do I only extract the logs from that log file only from that specific date till the end of the log file. If I can do that, I can grep for errors or exceptions and incorporate in the same script.
Note: the date I stored need not be in the log file, but I have to get the logs after that date from the file.
Thanks,
Chiru