Skip to content

Instantly share code, notes, and snippets.

@siwells
Created August 10, 2010 12:17
Show Gist options
  • Save siwells/517171 to your computer and use it in GitHub Desktop.
Save siwells/517171 to your computer and use it in GitHub Desktop.
ifconfig eth0 | grep 'inet ' | awk '{print $2}' | sed 's/addr://'
@siwells
Copy link
Author

siwells commented Aug 10, 2010

Get just my IP address

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment