in reply to Re: how to put the value in proper format
in thread how to put the value in proper format

I need one small modification if the line contains "Link" in the first line as sown below then get the same output i.e
port is 10, speed is 10000, link is up port is 19, speed is 1000, link is up
Please let me know how to do that
----------------------------------------------------------- Port Speed Duplex Flow Ctrl Link Name ---- ----- -------- --TX-----RX-- ------ ------