nerdexam
LPI

101-500 · Question #488

101-500 Question #488: Real Exam Question with Answer & Explanation

Sign in or unlock 101-500 to reveal the answer and full explanation for question #488. The question stem and answer options stay visible for context.

GNU and Unix Commands

Question

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?

Options

  • Agrep -E `:08:[09]+:[09]+' loga.log
  • Bgrep -E `:08:[00]+' loga.log
  • Cgrep -E loga.log `:08:[0-9]+:[0-9]+'
  • Dgrep loga.log `:08:[0-9]:[0-9]'
  • Egrep -E `:08:[0-9]+:[0-9]+' loga.log

Unlock 101-500 to see the answer

You've previewed enough free 101-500 questions. Unlock 101-500 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#grep#regular expressions#pattern matching#log filtering
Full 101-500 Practice