Maintaining sanity on the Cloud
Monday, June 30, 2014
Simple grep command to output lines before and after the search string
$grep -C 3 "NullPointerException" *.log --color
The option "-C 3" will output 3 lines before and 3 lines after the occurrence of NPE in the logs.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment