-1

I can only grep and display a particular line of a log file. What if I want to display the next line together?

Many thanks in advance.

gugu
  • 13
  • 5

1 Answers1

-1

cat filelogname | grep keyword

example : cat /var/log/httpd/error.log |grep Hello

Sunarto
  • 37
  • 1
  • 2
  • 8