Skip to content

Instantly share code, notes, and snippets.

@richsoni
Created August 16, 2013 14:02
Show Gist options
  • Save richsoni/6250211 to your computer and use it in GitHub Desktop.
Save richsoni/6250211 to your computer and use it in GitHub Desktop.
Router IP Script for Mac OS X
route -n get default | grep gateway | awk '{print $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment