Given a log file loga.log with timestamps of the format DD/MM/YYYY:hh:mm:ss, which command filters out all log entries in the time period between 8:00 am and 8:59 am?

Posted by: Pdfprep Category: 101-500 Tags: , ,

Given a log file loga.log with timestamps of the format DD/MM/YYYY:hh:mm:ss, which command filters out all log entries in the time period between 8:00 am and 8:59 am?
A . grep CE ‘:08:[09]+:[09]+’ loga.log
B . grep CE ‘:08:[00]+’ loga.log
C . grep CE loga.log ‘:08:[0-9]+:[0-9]+’
D . grep loga.log ‘:08:[0-9]:[0-9]’
E . grep CE ‘:08:[0-9]+:[0-9]+’ loga.log

Answer: E

Leave a Reply

Your email address will not be published.