Link to home
Start Free TrialLog in
Avatar of Amit
AmitFlag for United States of America

asked on

parse a file

Hi,

we have a tool and when we run it, its output is like the following.  Now what I need to get is the list of all the strings just before the word [Group]. So the output of parsing the following file should be like this. And the output can be variable I mean it should go through the entire file and look for the string [Group]. Hope I am clear enough

MI_AP_L2_NRRT
MI_AP_L2_RRT
MI_AP_NL2_NRRT
MI_EU_CapacityPlanning

-------------------------------------------------------------------------------------------------
2/4/2008 9:37:55 AM   Version: 8.1.0 (Build 8.1.000.149)
2/4/2008 9:37:55 AM   Project Source: 1-DEV (SMFIMDMSI01)
2/4/2008 9:37:55 AM   Login: administrator
2/4/2008 9:37:55 AM   Executing task(s)...
2/4/2008 9:37:55 AM   Members = MI_AP_L2_NRRT [Group], MI_AP_L2_RRT [Group], MI_AP_NL2_NRRT [Group], MI_AP_NL2_RRT [Group]
2/4/2008 9:37:55 AM   Members = MI_EU_CapacityPlanning [Group], MI_EU_L2_NRRT [Group], MI_EU_L2_RRT [Group], MI_EU_NL2_NRRT [Group]
2/4/2008 9:37:55 AM   Members = MI_EU_NL2_RRT [Group], MI_NA_BIDeveloper [Group], MI_NA_L2_NRRT [Group], MI_NA_L2_RRT [Group]
2/4/2008 9:37:55 AM   Members = MI_NA_NL2_NRRT [Group], MI_NA_NL2_RRT [Group], MI_Others [Group], MI_OthersL2 [Group]
2/4/2008 9:37:55 AM   Task(s) execution completed successfully.
ASKER CERTIFIED SOLUTION
Avatar of Adam314
Adam314

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial