Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

grep before and after

grep -B 5 -A 2 --color 'keyword' /path/to/file.log
 
PREVIOUS NEXT
Tagged: #grep
ADD COMMENT
Topic
Name
9+3 =