ifconfig | grep "inet addr:" | grep [^127]这样写怎么匹配不到呢
[root@test ~]# ifconfig | grep "inet addr:" | grep [^127]
inet addr:172.21.1.222 Bcast:172.21.1.255 Mask:255.255.255.0
inet addr:127.0.0.1 Mask:255.0.0.0
[root@test ~]# ifconfig | grep "inet addr:" | grep [^127]
inet addr:172.21.1.222 Bcast:172.21.1.255 Mask:255.255.255.0
inet addr:127.0.0.1 Mask:255.0.0.0
2016-05-20
举报