Skip to content

Instantly share code, notes, and snippets.

@katsuma
Created November 8, 2011 18:25
Show Gist options
  • Save katsuma/1348626 to your computer and use it in GitHub Desktop.
Save katsuma/1348626 to your computer and use it in GitHub Desktop.
Get IP address and set it to clipboard
ifconfig en1 | grep netmask | awk '{ print $2 }' | pbcopy && pbpaste
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment