![]() |
how to capture the line after the matching words
Hi,
I have log files and I need to match the lines before and after the matching words, not just the matching line. it would be nice if you could help me. BR, Khalid |
Take a look at the -B (before) and -A (after) option of grep. Maybe this what you're looking for.
|
Thanks, this exactly what I was looking for
|
| All times are GMT -5. The time now is 06:08 AM. |