LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   grep and print paragraph (https://www.linuxquestions.org/questions/programming-9/grep-and-print-paragraph-661917/)

B-Boy 08-11-2008 01:48 AM

grep and print paragraph
 
Hi how can I grep for a work but print the entire paragraph?

matthewg42 08-11-2008 02:02 AM

With the GNU implementation of grep you can use the options -A -B and -C.

B-Boy 08-11-2008 02:30 AM

Quote:

Originally Posted by matthewg42 (Post 3243241)
With the GNU implementation of grep you can use the options -A -B and -C.

thanks -C worked for me


All times are GMT -5. The time now is 03:08 AM.