查看ip 2015/11/14 15283 #!/bin/sh ifconfig|grep "inet"|grep -o -E "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}"|head -n 1