HI Guys,
I have below input.
Output Base on Below Condition.
1> if forth column is empty and next coming line have same name with \es then add that column name on all rows
2>rest of all are es:vsDataEUtranCellFDD
Input:-
CCL01736 CCL01736_7A_1 es:vsDataEUtranCellFDD
CCL01736 CCL01736_7A_1 es:frameStartOffset
CCL01736 CCL01736_7A_1 es:subFrameOffset 0
CCL01736 CCL01736_7A_1 es:timeOffset 0
CCL01736 CCL01736_7A_1 /es:frameStartOffset
CCL01736 CCL01736_7A_1 es:systemInformationBlock6
CCL01736 CCL01736_7A_1 es:tReselectionUtra 2
CCL01736 CCL01736_7A_1 es:tReselectionUtraSfMedium 100
CCL01736 CCL01736_7A_1 es:tReselectionUtraSfHigh 100
CCL01736 CCL01736_7A_1 /es:systemInformationBlock6
CCL01736 CCL01736_7A_1 es:timeOffset 0
Output:-
CCL01736 CCL01736_7A_1 es:vsDataEUtranCellFDD es:vsDataEUtranCellFDD
CCL01736 CCL01736_7A_1 es:frameStartOffset es:frameStartOffset
CCL01736 CCL01736_7A_1 es:frameStartOffset es:subFrameOffset 0
CCL01736 CCL01736_7A_1 es:frameStartOffset es:timeOffset 0
CCL01736 CCL01736_7A_1 es:frameStartOffset /es:frameStartOffset
CCL01736 CCL01736_7A_1 es:systemInformationBlock6 es:systemInformationBlock6
CCL01736 CCL01736_7A_1 es:systemInformationBlock6 es:tReselectionUtra 2
CCL01736 CCL01736_7A_1 es:systemInformationBlock6 es:tReselectionUtraSfMedium 100
CCL01736 CCL01736_7A_1 es:systemInformationBlock6 es:tReselectionUtraSfHigh 100
CCL01736 CCL01736_7A_1 es:systemInformationBlock6 /es:systemInformationBlock6
CCL01736 CCL01736_7A_1 es:vsDataEUtranCellFDD es:timeOffset 0
Because some data are between two tag so i want that tag name before that data and rest data are under es:vsDataEUtranCellFDD