I am parsing a file that has information as below:
port x: id (yy) Vendor: xxy SN: xxxxxxxxx
port x: id (zd) Vendor: xyz SN : xxxxyyyy
"
"
"
port x: id AZ SDWES x-Port xx:xx:xx:xx:xx:xx:xx:xx
port x: id DW WDES x-Port xx:xx:xx:xx:xx:xx:xx:xx
"
"
"
I don't want to get info of the port that has vendor (i.e. the string that has Vendor in it..)
which means, I don't want:
port x: id (yy) Vendor: xxy SN: xxxxxxxxx
but I want:
port x: id AZ SDWES x-Port xx:xx:xx:xx:xx:xx:xx:xx
Any ideas would be appreciated..
port x: id (yy) Vendor: xxy SN: xxxxxxxxx
port x: id (zd) Vendor: xyz SN : xxxxyyyy
"
"
"
port x: id AZ SDWES x-Port xx:xx:xx:xx:xx:xx:xx:xx
port x: id DW WDES x-Port xx:xx:xx:xx:xx:xx:xx:xx
"
"
"
I don't want to get info of the port that has vendor (i.e. the string that has Vendor in it..)
which means, I don't want:
port x: id (yy) Vendor: xxy SN: xxxxxxxxx
but I want:
port x: id AZ SDWES x-Port xx:xx:xx:xx:xx:xx:xx:xx
Any ideas would be appreciated..