Skip to content

Instantly share code, notes, and snippets.

@jfgomez86
Created October 12, 2012 14:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfgomez86/3879383 to your computer and use it in GitHub Desktop.
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)?
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