Tuesday 16 September 2008

Grep for rows after and before a pattern

Gnu gre.

grep -A 2 ORA-01555 bdump/alert_LIVE1.log | grep -B2 SYS.EXU9R

-A = After
-B = Before

0 comments: