I have data that look like:
COVUP.0.db2inst1.NODE0000.CATN0000.20110304144237.001
DBB.0.db2inst1.NODE0000.CATN0000.20100730102440.001
DBB.0.db2inst1.NODE0000.CATN0000.20100809104005.001
DOMINIC1.0.db2inst1.NODE0000.CATN0000.20101125123615.001
DOMINIC1.0.db2inst1.NODE0000.CATN0000.20101125153555.001
DOMINIC1.0.db2inst1.NODE0000.CATN0000.20101126162500.001
I need to store it as a variable that is array of array. In ruby I'd write
databases = {"COVUP" =>["20110304144237"],
"DBB" =>["20100730102440", "20100809104005"],
"DOMINIC1" =>["20101125123615","20101125153555","20101125153555"] }
where DBB will have two elements linked to it as there are two lines with DBB string in it.
- DBB.0.db2inst1.NODE0000.CATN0000.20100730102440.001
DBB.0.db2inst1.NODE0000.CATN0000.20100809104005.001
- How can I define such array and
- How can I walk through such array?