On 30.08.2013 10:50, Timothy Murphy wrote:
Is there an option for grep, or some similar program,
that will print out a whole paragraph -
defined as the section between two blank lines -
containing a given word or phrase?
Such as the above 4 lines.
If not, can anyone suggest a simple script that will do this?
awk 'BEGIN{RS=ORS="\n\n";FS=OFS="\n"}/your search term goes
here/' file
Mateusz Marzantowicz
// obtained from search engine //