Re: grep by paragraph

2013-09-01 Thread Suvayu Ali
On Fri, Aug 30, 2013 at 11:54:20AM -0500, Michael Hennebry wrote: > On Fri, 30 Aug 2013, Timothy Murphy wrote: > > >Dave Mitchell wrote: > > > >>>that will print out a whole paragraph - > >>>defined as the section between two blank lines - > >>>containing a given word or phrase? > >>> > >>>Such as

Re: grep by paragraph

2013-08-30 Thread poma
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 simp

Re: grep by paragraph

2013-08-30 Thread poma
On 30.08.2013 13:39, Andrew wrote: > Hi Timothy, >>> 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 anyon

Re: grep by paragraph

2013-08-30 Thread Michael Hennebry
On Fri, 30 Aug 2013, Timothy Murphy wrote: Dave Mitchell wrote: 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? The perl one-l

Re: grep by paragraph

2013-08-30 Thread Michael Parker
On Fri, Aug 30, 2013 at 01:03:24PM +0200, Timothy Murphy wrote: > Dave Mitchell wrote: > > >> 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

Re: grep by paragraph

2013-08-30 Thread smcg4191
On 08/30/2013 02:50 AM, 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 simp

Re: grep by paragraph

2013-08-30 Thread Andrew
Hi Timothy, 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? AIX has grep

Re: grep by paragraph

2013-08-30 Thread Timothy Murphy
Dave Mitchell wrote: >> 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? > > The perl one-liner below demonstrates th

Re: grep by paragraph

2013-08-30 Thread Dave Cross
On 30 August 2013 10:38, Dave Mitchell wrote: > On Fri, Aug 30, 2013 at 10:50:31AM +0200, Timothy Murphy wrote: > > 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, ca

Re: grep by paragraph

2013-08-30 Thread Mateusz Marzantowicz
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 simp

Re: grep by paragraph

2013-08-30 Thread Dave Mitchell
On Fri, Aug 30, 2013 at 10:50:31AM +0200, Timothy Murphy wrote: > 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? The perl

grep by paragraph

2013-08-30 Thread Timothy Murphy
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? -- Timothy Murphy e-mail: