SyntaxFix
Write A Post
Hire A Developer
Questions
Use -A and -B switches (mean lines-after and lines-before):
grep -A 1 -B 1 FAILED file.txt