Created
December 6, 2022 16:04
-
-
Save leveled/7e5ad99e8b1d8c556013a1fe86ca921b to your computer and use it in GitHub Desktop.
Filter out ipv6 addresses on an interface and return
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 -f inet6 addr show eth0 | sed -En -e 's/.*inet6 ([0-9a-fA-F:]+).*/\1/p' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment