Created
May 9, 2019 12:54
-
-
Save ensup/08e29682ff63dc19bf8866c20c45225b to your computer and use it in GitHub Desktop.
Check-IP(Unix)
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
#!/bin/bash | |
ip addr | grep "inet " | grep brd | awk '{print $2}' | awk -F/ '{print $1}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment