Hi experts,
I have a long list of data exported into excel from a text file. This file contains output of a command from multiple network elements.
Whenever there is a text string 'Welcome to', the below mentioned text should be copied to a new column till the next 'Welcome to' appears. In this case I will have separate column for each network element.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[/TR]
[TR]
[TD] --------------------------------------------------[/TD]
[/TR]
[TR]
[TD]MINI-LINK Traffic Node Command Line Interface[/TD]
[/TR]
[TR]
[TD]--------------------------------------------------[/TD]
[/TR]
[TR]
[TD]Welcome to DF0002[/TD]
[/TR]
[TR]
[TD]Password: ********[/TD]
[/TR]
[TR]
[TD]DF0002>s h o w v l a n [/TD]
[/TR]
[TR]
[TD]vlan1[/TD]
[/TR]
[TR]
[TD]vlan2[/TD]
[/TR]
[TR]
[TD]vlan3[/TD]
[/TR]
[TR]
[TD]--------------------------------------------------[/TD]
[/TR]
[TR]
[TD]MINI-LINK Traffic Node Command Line Interface[/TD]
[/TR]
[TR]
[TD]--------------------------------------------------[/TD]
[/TR]
[TR]
[TD]Welcome to DF0003[/TD]
[/TR]
[TR]
[TD]Password: ********[/TD]
[/TR]
[TR]
[TD]DF0003>s h o w v l a n [/TD]
[/TR]
[TR]
[TD]vlan4[/TD]
[/TR]
[TR]
[TD]vlan5[/TD]
[/TR]
</tbody>[/TABLE]
The output should be like this
[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD]Welcome to DF0002
[/TD]
[TD]Welcome to DF0003[/TD]
[/TR]
[TR]
[TD]Password: ********[/TD]
[TD]Password: ********[/TD]
[/TR]
[TR]
[TD]DF0002>s h o w v l a n [/TD]
[TD]DF0003>s h o w v l a n [/TD]
[/TR]
[TR]
[TD]vlan1[/TD]
[TD]vlan4[/TD]
[/TR]
[TR]
[TD]vlan2[/TD]
[TD]vlan5[/TD]
[/TR]
[TR]
[TD]vlan3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]--------------------------------------------------[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]MINI-LINK Traffic Node Command Line Interface[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]--------------------------------------------------[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have a long list of data exported into excel from a text file. This file contains output of a command from multiple network elements.
Whenever there is a text string 'Welcome to', the below mentioned text should be copied to a new column till the next 'Welcome to' appears. In this case I will have separate column for each network element.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[/TR]
[TR]
[TD] --------------------------------------------------[/TD]
[/TR]
[TR]
[TD]MINI-LINK Traffic Node Command Line Interface[/TD]
[/TR]
[TR]
[TD]--------------------------------------------------[/TD]
[/TR]
[TR]
[TD]Welcome to DF0002[/TD]
[/TR]
[TR]
[TD]Password: ********[/TD]
[/TR]
[TR]
[TD]DF0002>s h o w v l a n [/TD]
[/TR]
[TR]
[TD]vlan1[/TD]
[/TR]
[TR]
[TD]vlan2[/TD]
[/TR]
[TR]
[TD]vlan3[/TD]
[/TR]
[TR]
[TD]--------------------------------------------------[/TD]
[/TR]
[TR]
[TD]MINI-LINK Traffic Node Command Line Interface[/TD]
[/TR]
[TR]
[TD]--------------------------------------------------[/TD]
[/TR]
[TR]
[TD]Welcome to DF0003[/TD]
[/TR]
[TR]
[TD]Password: ********[/TD]
[/TR]
[TR]
[TD]DF0003>s h o w v l a n [/TD]
[/TR]
[TR]
[TD]vlan4[/TD]
[/TR]
[TR]
[TD]vlan5[/TD]
[/TR]
</tbody>[/TABLE]
The output should be like this
[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD]Welcome to DF0002
[/TD]
[TD]Welcome to DF0003[/TD]
[/TR]
[TR]
[TD]Password: ********[/TD]
[TD]Password: ********[/TD]
[/TR]
[TR]
[TD]DF0002>s h o w v l a n [/TD]
[TD]DF0003>s h o w v l a n [/TD]
[/TR]
[TR]
[TD]vlan1[/TD]
[TD]vlan4[/TD]
[/TR]
[TR]
[TD]vlan2[/TD]
[TD]vlan5[/TD]
[/TR]
[TR]
[TD]vlan3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]--------------------------------------------------[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]MINI-LINK Traffic Node Command Line Interface[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]--------------------------------------------------[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]