I want to get IPV6 address on my linux box. I know one command to get the IPV6 address.
$ ip addr show dev eth0 | sed -e's/^.*inet6 \([^ ]*\)\/.*$/\1/;t;d'
But issue is that I want only one occurrence that means only 2001:410:0:39:221:28ff:fe46:eef4 by single command.