Created
May 19, 2017 07:02
-
-
Save murarisumit/4ecc928b8a81f68741dbb4317afa14e1 to your computer and use it in GitHub Desktop.
List only ip address
This file contains hidden or 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
ip addr ls eth0 | awk '/inet / {print $2}' | cut -d"/" -f1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment