Created
September 21, 2018 18:44
-
-
Save ddnn55/4b9b831590b3d0053bd9b8c55a0913ff to your computer and use it in GitHub Desktop.
get local IP shell script
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 | |
ifconfig | grep inet\ | grep -v inet\ 169.254 | tail -1 | cut -d " " -f 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment