查看网卡配置信息的shell/ target=_blank class=infotextkey>shell脚本,代码如下:
#!/bin/bash function err(){ if [ $? == 1 ];then echo " **" fi }
if [ $# -eq 0 ]; then defnet="wlan0" else defnet=$@ fi
for i in $defnet do echo -e "