如何从日志文件中提取特定信息 linux red hat

0 linux

我有一个 500mb 的日志文件,我需要从中提取备份信息。我需要日期然后是两行。如果其他日子出现也没关系。

Fri Feb  8 00:00:02 2013
14:58:01  Level 0 Archive started on rootdbs, physdbs, logidbs, dbspace01
15:32:56  Archive on rootdbs, physdbs, logidbs, dbspace01 Completed.
Run Code Online (Sandbox Code Playgroud)

谢谢

gra*_*oot 5

尝试 grep -A2 "Fri Feb 8 00:00" /your/log/file