I wan to extract some information from ifconfig,
inet addr:184.108.40.206 Bcast:220.127.116.11 Mask:255.255.254.0
i wan to extract the mask value, how can i do that?
I've tried using
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?