ifconfig eth0 | grep -oP "inet \K([0-9]{1,3}[.]){3}[0-9]{1,3}"
grep 获取ip
猜你喜欢
转载自blog.51cto.com/myunix/2414300
今日推荐
周排行