CentOSLinuxrelease7.2.1511(Core)系统获取网卡ipifconfigem1|awk‘NR==2{print$2}‘ifconfigem1|sed-n‘2p‘|cut-d‘‘-f10ifconfigem1|sed-n"s/^.*inet\(.*\)netmask.*$/\1/gp"grep‘IPADDR‘/etc/sysconfig/network-scripts/ifcfg-em1|awk-F‘=‘‘{print$NF}‘grep‘IPADDR‘/etc/sysconf..
分类:
其他好文 时间:
2017-06-13 16:53:46
阅读次数:
117