摘要: #!/bin/bashfor i in `ifconfig | grep -o ^[a-z0-9]*`do ifconfig $i|sed -n 2p|awk '{ print $2 }'|tr -d 'addr:'done执行结果按行显示所有网卡的ipifconfig | grep -o ^[a... 阅读全文
posted @ 2016-01-26 16:17 伊小白 阅读(1092) 评论(0) 推荐(0) 编辑