Created
July 10, 2014 13:56
-
-
Save midwire/4ce1cf69bf6541a96e19 to your computer and use it in GitHub Desktop.
Determine the default gateway on OSX.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# determine the local gateway | |
netstat -nr|grep '^default' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment