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.
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.
cat filelogname | grep keyword
example : cat /var/log/httpd/error.log |grep Hello