How do I grep a log file from a specific date in Linux?

Giang Phạm

New member
How do I grep a log file from a specific date in Linux?
Answer
Detailed explanation can be found in various regex (regular expression) tutorials; egrep uses “POSIX extended” syntax ( man 7 regex ). The first ^ means “start of the line”. [^ ]+ just matches the date field, regardless of the actual date.
 

Tìm kiếm

Back
Top