Otherwise grep will do it:
grep -B3 pattern logfile
In reply to Re: How can I print three lines before pattern match?
by busunsl
in thread How can I print three lines before pattern match?
by neurotoxx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |