Hello All,
I have an array with given
string that has two fields. I want to check the data in the field one and print data in filed two. So my array has following elements:-
{
CINSTALLDIR CM
CINSTALLDIR CT
CINSTALLDIR PJ
CINSTALLDIR RM
CINSTALLDIR RX
CINSTALLDIR SV
CINSTALLDIR TM
INSTALLDIR CT
INSTALLDIR PJ
INSTALLDIR TM
MINSTALLDIR CM
MINSTALLDIR RX
MINSTALLDIR SV
}
And the output i desire is:-
CINSTALLDIR CM CT PJ RM RX SV TM
INSTALLDIR CT PJ TM
MINSTALLDIR CM RX SV
So what i did till now is this as below, I am not able to apply the proper logic. Could you please guide me what i am doing wrong? or some other approach.
Thanks
Aditya