Created
September 17, 2016 09:17
-
-
Save aleron75/f9e59194b471e73039ba286df6cb27c1 to your computer and use it in GitHub Desktop.
Get IP address on local network interface
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 show eno1 | grep -oPi 'inet \K[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment