how to get a word from a line using sed or grep
I am struggling with a problem.
I am trying to get a word from a line using sed. Following is the line which I want to use.
inet addr:10.245.86.15 Bcast:10.245.87.255 Mask:255.255.254.0 inet6 addr: fe80::1031:3dff:fe01:55e1/64 Scope:Link
From the above line, I need the ip address like 10.245.86.15 only.
Can u help me in this regard and thanks in advance.
Thanks and Regards,
Nagendra Kumar Aluru