I have a text file with the following format
Type: XTREMIO
UID: 51,4f,0c,51,9d,00,05,22
Vendor: XtremIO
Product: XtremApp
Size: 10.00 GB
Name: knocknarea_jounal
Replication info: [rpa_A, RPA_B, knocknarea_jounal]
Array Serial: CKM00150400153
RPA To volume paths map: None
Type: XTREMIO
UID: 51,4f,0c,51,9d,00,05,28
Vendor: XtremIO
Product: XtremApp
Size: 5.00 GB
Name: test_rep
Replication info: N/A
Array Serial: CKM00150400153
RPA To volume paths map: None
My objective is to convert those block into row like this with a delimiter:
XTREMIO;51,4f,0c,51,9d,00,05,28;XtremIO;XtremApp;5.00 GB;test_rep;CKM00150400153
Replication Info: N/A=> noN/Ain the ouput;RPA To Volume Paths map: None=> noNonein the output; total of 9 fields in source but only 7 fields in output ... so 2 fields ignored; also, how do you explain 2 sets of data in source but only 1 set of data in ouput? accidentally left out one set or one set left out by design (ie, additional logic used to filter out certain sets of data)?N/A;CKM00150400153;None;in example output and mention if there is any logic for filtering duplicate entries (for example same UID)