hello
I have this output
ifspeed 100000000
ifspeed 100000000
collisions 413
collisions 10
duplex full
duplex full
from
kstat bnx | grep ifspeed
kstat bnx | grep collisions
kstat bnx | grep duplex
I want to get
ifspeed: 100000000
ifspeed:100000000
collisions: 413
collisions: 10
duplex: full
duplex: full
So remove the white charcters and add : between both fields.
Any idea?
thanks