Shell – How to get surrounding lines of grep result?

Problem:I'm using grep to search for an error and want to display the surrounding lines also as they contain related information. How to do that? Solution:Using grep -C <# of lines to show above and below> <search> <file> The following prints the matched line, along with the 5 lines surrounding it. $ grep -C 5… Continue reading Shell – How to get surrounding lines of grep result?

OpenOffice.org 3.0.1 comes with Grammar Checking

OpenOffice.org 3.0.1 is out by now and what make this release exciting for me is the new integrated Grammar Checking feature. OpenOffice.org 3.0.1 incrementally improves the grammar checking infrastructure via an API for a grammar checker in the Writer text editor. The previous version 3.0 allowed the LanguageTool extension to provide grammar checking, and version… Continue reading OpenOffice.org 3.0.1 comes with Grammar Checking

Published
Categorized as Tech Notes