Skip to content

Instantly share code, notes, and snippets.

@broom9
Created September 8, 2011 15:18
Show Gist options
  • Save broom9/1203649 to your computer and use it in GitHub Desktop.
Save broom9/1203649 to your computer and use it in GitHub Desktop.
Get and Copy IP address, OSX only, ack required, IPv4 only
ifconfig| ack '(\d\d\d?\.){3}([01][0-9][0-9]|2[0-4][0-9]|25[0-4])' --nocolor -o | tee /dev/tty | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment