Hi,
I have to parse a very large file and I want to use the command grep (or any other tool).
I have to check in a log line the word "FAILED", print the line above and below.
For example:
id : 15
Satus : SUCESS
Message : no problem
id : 15
Satus : FAILED
Message : connection error
And I need to print only
id : 15
Satus : FAILED
Message : connection error
Thank you for your help !