Created
October 12, 2012 14:15
-
-
Save jfgomez86/3879383 to your computer and use it in GitHub Desktop.
Does this always print your wifi ip address (if you're on a macbook and you're connected to wifi only)?
This file contains 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
ifconfig -a | grep inet | tail -1 | xargs ruby -e "puts ARGV[1]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment