I'd like to traverse a text file a pull out groups of lines at a time. In the example below, I'd like to grep all lines below AAA but stop at bbb (ie all of the 'xxx')
Thanks
example:
-------AAA-------
xxx
xxx
xxx
xxx
xxx
-------bbb--------
yyy
yyy
yyy
yyy
------AAA---------
xxx
xxx
xxx
xxx
------bbb--------
yyy