How to Use Linux Grep Command with Context Lines? Quick Answer: Use grep -A 3 -B 3 "pattern" file to show 3 lines after and...
Bash
grep -r -n -A 3 -B 3 --color=always "ERROR" /var/log