Created
April 2, 2015 09:02
-
-
Save dcb9/45b6fa16e8f0d35cb556 to your computer and use it in GitHub Desktop.
获取本机的外网出口IP是多少
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl http://1111.ip138.com/ic.asp 2>/dev/null | grep '\[' | awk -F'[' '{print $2}' | awk -F']' '{print $1}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment