Hi,
I wan to extract some information from ifconfig,
eg:
inet addr:123.123.123.123 Bcast:123.123.123.255 Mask:255.255.254.0
i wan to extract the mask value, how can i do that?
I've tried using
Code:
grep -o "Mask:*" test1.txt
but it only outputs "Mask:" I need to get 255.255.254.0
Any idea how should can I do it?