应用层修改ifconfig命令

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

if [ $# = 0 ];then
        ifconfig | head -n 18
elif [ $# = 1 ];then
        if [ $1 == "-v" ] || [ $1 == "-a" ] ;then
                 ifconfig | head -n 18
        else
                 ifconfig $1
        fi
else
        ifconfig $@
fi