I think I couldn't post my query in a clear way.Sorry for that. The sample input which I have is the audit trial for the user When there is any change in user fields like Segment,Attributes,Connect or GrpAttr , it will get listed in the audit trial.So the order of heading may differ for every user. User may request for more than one group connection (or) removals.So, the number of rows after the 'Connect' keyword may vary. BCSC,Group2 and Group3a - These are the groups added/removed from the user on the respective dates(05.238/14:24) by IBMUSER. I am just intersted in the groups which are connected/removed from the user. We don't get the same group (ie BCSC,Group2,Group3a) every time. The file contains only one connect block.And I just need the group details inside the connect block.I don't want to print any other lines.
... View more