显示本机ip 带颜色: ifconfig eth0|awk -F "[ :]+" 'NR==2 {print "this device IP: " "\033[1;31m" $4 "\033[0m"}'