cp713a
04-15-2021, 09:59 PM
Hi,
I have a huge file contains servers, software name and its version. The data is a text file and I'd like to read in for each of the name of the Server , software and software version. I need it to loop through the entire text file until eof.
For ex:
Serv1
sw1
ver1
sw1_1
ver1_1
sw1_1_1_1
ver1_1_1
Serv2
sw2
ver2
sw2_2
ver2_2
sw2_2_2_2
ver2_2_2
Serv3
sw3
ver3
sw3_3
ver3_3
sw3_3_3_3
ver3_3_3
Serv4
sw4
ver4
sw4_4
ver4_4
sw4_4_4_4
ver4_4_4
The output will list all the servers as the header in a column and below each row are the sw, ver...etc...like this output:
Serv1 Serv2 Serv3 Serv4
swswname swname swname swname
ver ver2 ver3 ver4
swname sw2_2 sw3_3 sw4_4
ver_ ver2_2 ver3_3 ver4_4
swname _swname _swname_swname
vers_ swname _swname ver2_2_2
each time it search for all the software and version listed under the Serv, then moves on to the next server and read all the sw and version until it reaches another Server etc...
Hope it makes sense
I have a huge file contains servers, software name and its version. The data is a text file and I'd like to read in for each of the name of the Server , software and software version. I need it to loop through the entire text file until eof.
For ex:
Serv1
sw1
ver1
sw1_1
ver1_1
sw1_1_1_1
ver1_1_1
Serv2
sw2
ver2
sw2_2
ver2_2
sw2_2_2_2
ver2_2_2
Serv3
sw3
ver3
sw3_3
ver3_3
sw3_3_3_3
ver3_3_3
Serv4
sw4
ver4
sw4_4
ver4_4
sw4_4_4_4
ver4_4_4
The output will list all the servers as the header in a column and below each row are the sw, ver...etc...like this output:
Serv1 Serv2 Serv3 Serv4
swswname swname swname swname
ver ver2 ver3 ver4
swname sw2_2 sw3_3 sw4_4
ver_ ver2_2 ver3_3 ver4_4
swname _swname _swname_swname
vers_ swname _swname ver2_2_2
each time it search for all the software and version listed under the Serv, then moves on to the next server and read all the sw and version until it reaches another Server etc...
Hope it makes sense