- [root@node1 check]# ifconfig eth0|grep 'inet addr'|awk -F '[ :]' '{print $13}'
- [root@node1 check]# ifconfig eth0|grep 'inet addr'|awk -F ":" '{print $2}'|awk '{print $1}'
转载于:https://blog.51cto.com/zzslinux/1171264
转载于:https://blog.51cto.com/zzslinux/1171264