Skip to content

Instantly share code, notes, and snippets.

@capoferro
Created July 8, 2010 02:04
Show Gist options
  • Save capoferro/467560 to your computer and use it in GitHub Desktop.
Save capoferro/467560 to your computer and use it in GitHub Desktop.
Retrieve IP address via sh
ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment