More than 1 year has passed since last update.
$ ifconfig eth0 | grep -o -P '(?<=inet addr:)\d+\.\d+\.\d+\.\d+'
0.0.0.0
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.