|
grep -p <pattern> <file>
gives the paragraphic view of the <pattern> value in the <file>
Man page info. pasted below:
-p[Separator] Displays the entire paragraph containing matched lines. Paragraphs
are delimited by paragraph separators, as specified by the Separator parameter,
which are patterns in the same form as the search pattern. Lines containing the
paragraph separators are used only as separators; they are never included in the
output. The default paragraph separator is a blank line.
Lemme know if u need any example
|