grep - block with start & end text

2016-03-19 Thread Prashant Thorat
Hi All, Can you please help me to grep below 'block of text' from my file ? this blocks occurs number of time & I want to grep all in between lines of this block - first line is having - retr_test asm1 & 4th line is having only - END so I want to grep all four lines with above match . Thanks

Re: grep - block with start & end text

2016-03-19 Thread Andrew Solomon
And to understand Scott's easy to write, hard to understand approach: http://blog.geekuni.com/2016/03/perl-flip-flop.html Andrew On Fri, Mar 18, 2016 at 3:50 PM, Scott Hall wrote: > > > On Fri, Mar 18, 2016 at 9:40 AM Prashant Thorat > wrote:

Re: grep - block with start & end text

2016-03-19 Thread Shawn H Corey
On Fri, 18 Mar 2016 19:07:10 +0530 Prashant Thorat wrote: > Can you please help me to grep below 'block of text' from my file ? > this blocks occurs number of time & I want to grep all in between > lines of this block - > > first line is having - retr_test asm1 > &

Re: grep - block with start & end text

2016-03-19 Thread Scott Hall
Thanks Andrew. Your article explained what I did not have the words for. It was very well written. Scott On Fri, Mar 18, 2016 at 1:23 PM Andrew Solomon wrote: > And to understand Scott's easy to write, hard to understand approach: > >