|
Delete rest of the line
Hi, can anyone please answer my question in deleting the rest of the line. I have an example below of a file contaning:
Serial3/1.5 43.70.195.13 YES NVRAM down down
Serial3/3 225.94.155.69 YES NVRAM up down
Serial3/6 unassigned YES NVRAM administratively down down
Serial3/7 unassigned YES NVRAM up down
ATM2/0 unassigned YES NVRAM up down
My question is how do I delete the rest of the line except the first word from each line.
My result should be
Serial5/1.5
Serial3/3
Serial 3/6
.
.
.
Regards,
Aejaz
|