/ shell / get_ip.sh
get_ip.sh
1  #!/bin/sh
2  LANG=en_EN.utf8 && /sbin/ifconfig | sed -n 's|.*P-t-P:\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\).*|\1|p'