Last active
August 2, 2016 10:34
-
-
Save etam/dc6145b60716c33754261ad0dcdd7462 to your computer and use it in GitHub Desktop.
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
| #!/bin/bash | |
| A="$(ip addr show dev eth0)" | |
| A="${A##*inet }" | |
| echo "${A%%/*}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment